PDepend\Source\Language\PHP\AbstractPHPParser::isAlternativeScopeTermination PHP Метод

isAlternativeScopeTermination() приватный Метод

This method returns true when the given token identifier represents the end token of a alternative scope termination symbol. Otherwise this method will return false.
С версии: 0.10.0
private isAlternativeScopeTermination ( integer $tokenType ) : boolean
$tokenType integer The token type identifier.
Результат boolean
    private function isAlternativeScopeTermination($tokenType)
    {
        return in_array($tokenType, array(Tokens::T_ENDDECLARE, Tokens::T_ENDFOR, Tokens::T_ENDFOREACH, Tokens::T_ENDIF, Tokens::T_ENDSWITCH, Tokens::T_ENDWHILE));
    }
AbstractPHPParser