TypeToken
in package
implements
TokenInterface
Value type token.
Tags
Interfaces, Classes and Traits
- TokenInterface
- Argument token interface.
Table of Contents
- $type : mixed
- __construct() : mixed
- __toString() : string
- Returns string representation for token.
- isLast() : bool
- Returns false.
- scoreArgument() : bool|int
- Scores 5 if argument has the same type this token was constructed with.
Properties
$type
private
mixed
$type
Methods
__construct()
public
__construct(string $type) : mixed
Parameters
- $type : string
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 5 if argument has the same type this token was constructed with.
public
scoreArgument( $argument) : bool|int