src/ViKon/Parser/TokenList.php
public function getTokenAt($index) {
        // Get token from behind
        if ($index < 0) {
            $index = count($this->tokens) + $index;
        }

        return $this->tokens[$index];
    }
public function getTokenAt($index) {
        // Get token from behind
        if ($index < 0) {
            $index = count($this->tokens) + $index;
        }

        return $this->tokens[$index];
    }
public function getTokenAt ( $ index ) { // Get token from behind if ( $ index < 0 ) { $ index = count ( $ this -> tokens ) + $ index ; } return $ this -> tokens [ $ index ] ; }
Get token at given position

@param int $index token index, if index is negative get token from behind (-1 is last element)

@return \ViKon\Parser\Token
Get token at given position