StringContainsToken
in package
implements
TokenInterface
String contains token.
Tags
Interfaces, Classes, Traits and Enums
- TokenInterface
- Argument token interface.
Table of Contents
- $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
- Calculates token match score for provided argument.
Properties
$value
private
mixed
$value
Methods
__construct()
Initializes token.
public
__construct(string $value) : mixed
Parameters
- $value : string
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()
Calculates token match score for provided argument.
public
scoreArgument(mixed $argument) : bool|int
Parameters
- $argument : mixed