Documentation

TypeToken
in package
implements TokenInterface

Value type token.

Tags
author

Konstantin Kudryashov ever.zet@gmail.com

Interfaces, Classes and Traits

TokenInterface
Argument token interface.

Table of Contents

$type  : mixed
__construct()  : mixed
__toString()  : string
Returns string representation for token.
isLast()  : bool
Returns false.
scoreArgument()  : bool|int
Scores 5 if argument has the same type this token was constructed with.

Properties

Methods

__construct()

public __construct(string $type) : mixed
Parameters
$type : string
Return values
mixed

__toString()

Returns string representation for token.

public __toString() : string
Return values
string

isLast()

Returns false.

public isLast() : bool
Return values
bool

scoreArgument()

Scores 5 if argument has the same type this token was constructed with.

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

Search results