Example #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;
 }
Example #2
0
 /**
  * @return ClassServiceReflection
  */
 public function getInterfaceReflection()
 {
     return ClassServiceReflection::createReflection(new ReflectionClass($this->getInterface()));
 }