CallbackToken
in package
implements
TokenInterface
Callback-verified token.
Tags
Interfaces, Classes and Traits
- TokenInterface
- Argument token interface.
Table of Contents
- $callback : mixed
- __construct() : mixed
- Initializes token.
- __toString() : string
- Returns string representation for token.
- isLast() : bool
- Returns false.
- scoreArgument() : bool|int
- Scores 7 if callback returns true, false otherwise.
Properties
$callback
private
mixed
$callback
Methods
__construct()
Initializes token.
public
__construct(callable $callback) : mixed
Parameters
- $callback : callable
Tags
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 7 if callback returns true, false otherwise.
public
scoreArgument( $argument) : bool|int