ApiGen\Generator\Resolvers\ElementResolver::getConstant PHP Метод

getConstant() публичный метод

public getConstant ( $name, $namespace = '' )
    public function getConstant($name, $namespace = '')
    {
        $parsedConstants = $this->parserStorage->getConstants();
        $constant = $this->findElementByNameAndNamespace($parsedConstants, $name, $namespace);
        if ($constant && $constant->isDocumented()) {
            return $constant;
        }
        return null;
    }