PDepend\Source\Language\PHP\AbstractPHPParser::isTypeHint PHP Method

isTypeHint() protected method

Tests if the given token type is a valid formal parameter in the supported PHP version.
Since: 1.0.0
protected isTypeHint ( integer $tokenType ) : boolean
$tokenType integer
return boolean
    protected function isTypeHint($tokenType)
    {
        switch ($tokenType) {
            case Tokens::T_STRING:
            case Tokens::T_BACKSLASH:
            case Tokens::T_NAMESPACE:
                return true;
        }
        return false;
    }
AbstractPHPParser