PHP Class PhpCss\Scanner

The actual result depends on the status, the status class does the actual token matching and generation, the scanner handles, to loops and delegations.
Mostrar archivo Open project: ThomasWeinert/PhpCss

Public Methods

Method Description
__construct ( Status $status ) Constructor, set status object
scan ( &$target, string $string, integer $offset ) : integer Scan a string for tokens

Private Methods

Method Description
_delegate ( Token[] &$target, Status $status ) : Scanner Got new status, delegate to subscanner.
_next ( ) : Token | null Get next token

Method Details

__construct() public method

Constructor, set status object
public __construct ( Status $status )
$status PhpCss\Scanner\Status

scan() public method

Scan a string for tokens
public scan ( &$target, string $string, integer $offset ) : integer
$string string content string
$offset integer start offset
return integer new offset