Documentation

ExactValueToken
in package
implements TokenInterface

Exact value token.

Tags
author

Konstantin Kudryashov ever.zet@gmail.com

Interfaces, Classes, Traits and Enums

TokenInterface
Argument token interface.

Table of Contents

$comparatorFactory  : mixed
$string  : mixed
$util  : mixed
$value  : mixed
__construct()  : mixed
Initializes token.
__toString()  : string
Returns string representation for token.
getValue()  : mixed
Returns preset value against which token checks arguments.
isLast()  : bool
Returns false.
scoreArgument()  : bool|int
Scores 10 if argument matches preset value.

Properties

Methods

__construct()

Initializes token.

public __construct(mixed $value[, StringUtil $util = null ][, Factory $comparatorFactory = null ]) : mixed
Parameters
$value : mixed
$util : StringUtil = null
$comparatorFactory : Factory = null
Return values
mixed

__toString()

Returns string representation for token.

public __toString() : string
Return values
string

getValue()

Returns preset value against which token checks arguments.

public getValue() : mixed
Return values
mixed

isLast()

Returns false.

public isLast() : bool
Return values
bool

scoreArgument()

Scores 10 if argument matches preset value.

public scoreArgument( $argument) : bool|int
Parameters
$argument :
Return values
bool|int

Search results