src/ViKon/Parser/TokenList.php
public function lastIndexByName($name) {
        for ($i = count($this->tokens) - 1; $i >= 0; $i--) {
            if ($this->tokens[$i]->getName() === $name) {
                return $i;
            }
        }

        return null;
    }
public function lastIndexByName($name) {
        for ($i = count($this->tokens) - 1; $i >= 0; $i--) {
            if ($this->tokens[$i]->getName() === $name) {
                return $i;
            }
        }

        return null;
    }
public function lastIndexByName ( $ name ) { for ( $ i = count ( $ this -> tokens ) - 1 ; $ i >= 0 ; $ i -- ) { if ( $ this -> tokens [ $ i ] -> getName ( ) === $ name ) { return $ i ; } } return null ; }
Get last token index that match provided name

@param string $name token name

@return int|null
Get last token index that match provided name