Documentation

ObjectStateToken
in package
implements TokenInterface

Object state-checker token.

Tags
author

Konstantin Kudryashov ever.zet@gmail.com

Interfaces, Classes, Traits and Enums

TokenInterface
Argument token interface.

Table of Contents

$comparatorFactory  : mixed
$name  : mixed
$util  : mixed
$value  : mixed
__construct()  : mixed
Initializes token.
__toString()  : string
Returns string representation for token.
isLast()  : bool
Returns false.
scoreArgument()  : bool|int
Scores 8 if argument is an object, which method returns expected value.

Properties

Methods

__construct()

Initializes token.

public __construct(string $methodName, mixed $value[, null|StringUtil $util = null ][, Factory $comparatorFactory = null ]) : mixed
Parameters
$methodName : string
$value : mixed

Expected return value

$util : null|StringUtil = null
$comparatorFactory : Factory = null
Return values
mixed

__toString()

Returns string representation for token.

public __toString() : string
Return values
string

scoreArgument()

Scores 8 if argument is an object, which method returns expected value.

public scoreArgument(mixed $argument) : bool|int
Parameters
$argument : mixed
Return values
bool|int

Search results