Documentation

ApproximateValueToken
in package
implements TokenInterface

Approximate value token

Tags
author

Daniel Leech daniel@dantleech.com

Interfaces, Classes, Traits and Enums

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

Methods

__construct()

public __construct(mixed $value[, mixed $precision = 0 ]) : mixed
Parameters
$value : mixed
$precision : mixed = 0
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
Return values
bool|int

Search results