Pinq\Parsing\IMagicScopes::getParentClassConstant PHP Метод

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

Null if not applicable.
public getParentClassConstant ( ) : string | null
Результат string | null
    public function getParentClassConstant();

Usage Example

Пример #1
0
 private function resolveMagicScopeClassConstant($class)
 {
     switch ($this->normalScopeClass($class)) {
         case 'self':
             return $this->magicScopes->getSelfClassConstant();
         case 'static':
             return $this->magicScopes->getStaticClassConstant();
         case 'parent':
             return $this->magicScopes->getParentClassConstant();
     }
 }