src/Tokenizer/Tokens.php
public function getNextTokenOfKind($index, array $tokens = [], $caseSensitive = true)
    {
        return $this->getTokenOfKindSibling($index, 1, $tokens, $caseSensitive);
    }
public function getNextTokenOfKind($index, array $tokens = [], $caseSensitive = true)
    {
        return $this->getTokenOfKindSibling($index, 1, $tokens, $caseSensitive);
    }
public function getNextTokenOfKind ( $ index , array $ tokens = [ ] , $ caseSensitive = true ) { return $ this -> getTokenOfKindSibling ( $ index , 1 , $ tokens , $ caseSensitive ) ; }
Get index for closest next token of given kind.

This method is shorthand for getTokenOfKindSibling method.

@param int   $index         token index
@param array $tokens        possible tokens
@param bool  $caseSensitive perform a case sensitive comparison

@return null|int
Get index for closest next token of given kind .