Phan\CodeBase::getClassConstantMapByFullyQualifiedClassName PHP Method

getClassConstantMapByFullyQualifiedClassName() public method

public getClassConstantMapByFullyQualifiedClassName ( FullyQualifiedClassName $fqsen ) : array
$fqsen Phan\Language\FQSEN\FullyQualifiedClassName
return array The set of class constants associated with the given class
    public function getClassConstantMapByFullyQualifiedClassName(FullyQualifiedClassName $fqsen) : array
    {
        return $this->getClassMapByFullyQualifiedClassName($fqsen)->getClassConstantMap();
    }

Usage Example

Example #1
0
File: Clazz.php Project: etsy/phan
 /**
  * @return ClassConstant[]
  * The constants associated with this class
  */
 public function getConstantMap(CodeBase $code_base) : array
 {
     return $code_base->getClassConstantMapByFullyQualifiedClassName($this->getFQSEN());
 }