PHP Class Transphporm\Parser\Tokens

Inheritance: implements Iterator, implements Countable
Show file Open project: level-2/transphporm

Public Methods

Method Description
__construct ( array $tokens )
count ( )
current ( ) Iterator Functions
from ( $tokenType, $inclusive = false )
key ( )
next ( )
read ( $offset )
rewind ( )
skip ( $count )
splitOnToken ( $tokenType )
to ( $tokenType, $inclusive = false )
trim ( )
type ( $offset )
valid ( )

Private Methods

Method Description
getKeyToSlice ( $tokenType )
getKeysOfTokenType ( $tokenType )

Method Details

__construct() public method

public __construct ( array $tokens )
$tokens array

count() public method

public count ( )

current() public method

Iterator Functions
public current ( )

from() public method

public from ( $tokenType, $inclusive = false )

key() public method

public key ( )

next() public method

public next ( )

read() public method

public read ( $offset )

rewind() public method

public rewind ( )

skip() public method

public skip ( $count )

splitOnToken() public method

public splitOnToken ( $tokenType )

to() public method

public to ( $tokenType, $inclusive = false )

trim() public method

public trim ( )

type() public method

public type ( $offset )

valid() public method

public valid ( )