Пример #1
0
 public function getTargetsFromRegistry($registry)
 {
     $target = null;
     $className = $this->receiverClassNameToken->getText();
     while (null === $target && null !== $className) {
         $identifier = OA_FunctionRegistry::createNameForConstructor($className);
         $target = $registry->resolveStaticReceiverForName($identifier);
         // If we failed to find the receiver, try the superclass.
         if (null === $target) {
             $className = $registry->getSuperclassName($className);
         }
     }
     return null !== $target ? array($target) : array();
 }