hasClassConstantWithFQSEN() public method

public hasClassConstantWithFQSEN ( FullyQualifiedClassConstantName $fqsen ) : boolean
$fqsen Phan\Language\FQSEN\FullyQualifiedClassConstantName
return boolean True if an element with the given FQSEN exists
コード例 #1
0
ファイル: Clazz.php プロジェクト: etsy/phan
 /**
  * @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));
 }