Pinq\Parsing\Resolvers\FunctionMagicResolver::walkClassConstant PHP Метод

walkClassConstant() публичный Метод

public walkClassConstant ( ClassConstantExpression $expression )
$expression Pinq\Expressions\ClassConstantExpression
    public function walkClassConstant(O\ClassConstantExpression $expression)
    {
        $classExpression = $expression->getClass();
        if ($classExpression instanceof O\ValueExpression && strtolower($expression->getName()) === 'class') {
            $classConstantValue = $this->resolveMagicScopeClassConstant($classExpression->getValue());
            if ($classConstantValue === null) {
                return $expression;
            }
            return O\Expression::value($classConstantValue);
        }
        return parent::walkClassConstant($this->resolveMagicScopeExpression($expression));
    }