Phan\Language\Element\Clazz::hasConstantWithName PHP Метод

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

public hasConstantWithName ( CodeBase $code_base, string $name ) : boolean
$code_base Phan\CodeBase
$name string
Результат boolean 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));
    }