getClassConstantByFQSEN() public method

public getClassConstantByFQSEN ( FullyQualifiedClassConstantName $fqsen ) : Phan\Language\Element\ClassConstant
$fqsen Phan\Language\FQSEN\FullyQualifiedClassConstantName The FQSEN of a class constant to get
return Phan\Language\Element\ClassConstant A class constant with the given FQSEN
Example #1
0
File: Clazz.php Project: etsy/phan
 /**
  * @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));
 }