ObjectStateToken
in package
implements
TokenInterface
Object state-checker token.
Tags
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
$comparatorFactory
private
mixed
$comparatorFactory
$name
private
mixed
$name
$util
private
mixed
$util
$value
private
mixed
$value
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 —isLast()
Returns false.
public
isLast() : bool
Return values
bool —scoreArgument()
Scores 8 if argument is an object, which method returns expected value.
public
scoreArgument(mixed $argument) : bool|int
Parameters
- $argument : mixed