Inheritance: extends ApiGen\Parser\Reflection\ReflectionBase, implements ApiGen\Contracts\Parser\Reflection\ElementReflectionInterface
 public function __construct($reflectionClass)
 {
     parent::__construct($reflectionClass);
     $this->classMagicElementExtractor = new ClassMagicElementsExtractor($this);
     $this->classTraitElementExtractor = new ClassTraitElementsExtractor($this, $reflectionClass);
     $this->parentClassElementExtractor = new ParentClassElementsExtractor($this);
 }
 /**
  * @param ReflectionElement|string $element
  * @return string
  */
 private function detectClass($element)
 {
     if ($element instanceof ClassReflectionInterface) {
         return $element;
     }
     if ($element instanceof InClassInterface) {
         return $element->getDeclaringClass();
     }
     return '';
 }