classes/PhpSourceStream.php
public function getNext()
    {
        $nextIndex = $this->head + 1;
        if (!array_key_exists($nextIndex, $this->tokens)) {
            return null;
        }

        $this->head = $nextIndex;
        return $this->tokens[$nextIndex];
    }
public function getNext()
    {
        $nextIndex = $this->head + 1;
        if (!array_key_exists($nextIndex, $this->tokens)) {
            return null;
        }

        $this->head = $nextIndex;
        return $this->tokens[$nextIndex];
    }
public function getNext ( ) { $ nextIndex = $ this -> head + 1 ; if ( ! array_key_exists ( $ nextIndex , $ this -> tokens ) ) { return null ; } $ this -> head = $ nextIndex ; return $ this -> tokens [ $ nextIndex ] ; }
Returns the next token and moves the head forward.
Returns the next token and moves the head forward .