/**
* @return bool
* True if a constant with the given name is defined
* on this class.
*/
public function hasConstantWithName(CodeBase $code_base, string $name) : bool
{
return $code_base->hasClassConstantWithFQSEN(FullyQualifiedClassConstantName::make($this->getFQSEN(), $name));
}