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