ApproximateValueToken
in package
implements
TokenInterface
Approximate value token
Tags
Interfaces, Classes and Traits
- TokenInterface
- Argument token interface.
Table of Contents
- $precision : mixed
- $value : mixed
- __construct() : mixed
- __toString() : string
- Returns string representation for token.
- isLast() : bool|int
- Returns true if this token prevents check of other tokens (is last one).
- scoreArgument() : bool|int
- Calculates token match score for provided argument.
Properties
$precision
private
mixed
$precision
$value
private
mixed
$value
Methods
__construct()
public
__construct(mixed $value, mixed $precision) : mixed
Parameters
- $value : mixed
- $precision : mixed
Return values
mixed —__toString()
Returns string representation for token.
public
__toString() : string
Return values
string —isLast()
Returns true if this token prevents check of other tokens (is last one).
public
isLast() : bool|int
Return values
bool|int —scoreArgument()
Calculates token match score for provided argument.
public
scoreArgument(mixed $argument) : bool|int
Parameters
- $argument : mixed