Documentation

StringContainsToken
in package
implements TokenInterface

String contains token.

Tags
author

Peter Mitchell pete@peterjmit.com

Interfaces, Classes and Traits

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

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

scoreArgument()

Calculates token match score for provided argument.

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

Search results