ExactValueToken
in package
implements
TokenInterface
Exact value token.
Tags
Interfaces, Classes, Traits and Enums
- TokenInterface
- Argument token interface.
Table of Contents
- $comparatorFactory : mixed
- $string : mixed
- $util : mixed
- $value : mixed
- __construct() : mixed
- Initializes token.
- __toString() : string
- Returns string representation for token.
- getValue() : mixed
- Returns preset value against which token checks arguments.
- isLast() : bool
- Returns false.
- scoreArgument() : bool|int
- Scores 10 if argument matches preset value.
Properties
$comparatorFactory
private
mixed
$comparatorFactory
$string
private
mixed
$string
$util
private
mixed
$util
$value
private
mixed
$value
Methods
__construct()
Initializes token.
public
__construct(mixed $value[, StringUtil $util = null ][, Factory $comparatorFactory = null ]) : mixed
Parameters
- $value : mixed
- $util : StringUtil = null
- $comparatorFactory : Factory = null
Return values
mixed —__toString()
Returns string representation for token.
public
__toString() : string
Return values
string —getValue()
Returns preset value against which token checks arguments.
public
getValue() : mixed
Return values
mixed —isLast()
Returns false.
public
isLast() : bool
Return values
bool —scoreArgument()
Scores 10 if argument matches preset value.
public
scoreArgument( $argument) : bool|int