Flow\TokenStream::__construct PHP Method

__construct() public method

public __construct ( array $tokens )
$tokens array
    public function __construct(array $tokens)
    {
        $this->tokens = $tokens;
        $this->currentToken = null;
        $this->queue = array();
        $this->cursor = 0;
        $this->eos = false;
        $this->next();
    }