public function getClassConstantByFQSEN(FullyQualifiedClassConstantName $fqsen) : ClassConstant { return $this->getClassMapByFQSEN($fqsen)->getClassConstantByName($fqsen->getNameWithAlternateId()); }
/** * @return ClassConstant * The class constant with the given name. */ public function getConstantWithName(CodeBase $code_base, string $name) : ClassConstant { return $code_base->getClassConstantByFQSEN(FullyQualifiedClassConstantName::make($this->getFQSEN(), $name)); }