Exemplo n.º 1
0
 public static function createReflection(ReflectionClass $reflection)
 {
     $result = new ClassServiceReflection($reflection->getName(), self::getDescriptionBlock($reflection->getDocComment()));
     $methods = $reflection->getMethods();
     foreach ($methods as $method) {
         if (!$method->isPublic()) {
             continue;
         }
         $result->addMethod(MethodServiceReflection::createReflection($method));
     }
     return $result;
 }
Exemplo n.º 2
0
 /**
  * @return ClassServiceReflection
  */
 public function getInterfaceReflection()
 {
     return ClassServiceReflection::createReflection(new ReflectionClass($this->getInterface()));
 }