Пример #1
0
 /**
  * @param \Reflection|\ReflectionMethod|\ReflectionProperty $rThing
  * @return array
  */
 protected function _getDeclaredNamespaces($rThing)
 {
     /**
      * @var \ReflectionClass $dClass
      */
     $dClass = $rThing->getDeclaringClass();
     if ($dClass != $this->class) {
         $fullName = $dClass->getNamespaceName() . '\\' . $dClass->getName();
         if (!isset($this->otherNamespaces[$fullName])) {
             $this->otherNamespaces[$fullName] = $this->nsParser->parseClass($dClass);
         }
         return $this->otherNamespaces[$fullName];
     }
     return $this->_getNamespaces();
 }