IdenticalValueToken
in package
implements
TokenInterface
Identical value token.
Tags
Interfaces, Classes, Traits and Enums
- TokenInterface
- Argument token interface.
Table of Contents
- $string : mixed
- $util : mixed
- $value : mixed
- __construct() : mixed
- Initializes token.
- __toString() : string
- Returns string representation for token.
- isLast() : bool
- Returns false.
- scoreArgument() : bool|int
- Scores 11 if argument matches preset value.
Properties
$string
private
mixed
$string
$util
private
mixed
$util
$value
private
mixed
$value
Methods
__construct()
Initializes token.
public
__construct(mixed $value[, StringUtil $util = null ]) : mixed
Parameters
- $value : mixed
- $util : StringUtil = 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 11 if argument matches preset value.
public
scoreArgument( $argument) : bool|int