PDepend\Source\Language\PHP\PHPTokenizerInternal::peek PHP Method

peek() public method

Returns the next token type or {@link \PDepend\Source\Tokenizer\Tokenizer::T_EOF} if there is no next token.
public peek ( ) : integer
return integer
    public function peek()
    {
        $this->tokenize();
        if (isset($this->tokens[$this->index])) {
            return $this->tokens[$this->index]->type;
        }
        return self::T_EOF;
    }