src/Parser/ClassParser.php
protected function extendsParents(ReflectionClass $reflectionClass)
    {
        $annotation = $this->parse($reflectionClass->getDocComment());

        $annotation['class'] = $reflectionClass->getName();

        array_unshift($this->parentAnnotations, $annotation);

        if (false !== $reflectionClass->getParentClass()) {
            $this->extendsParents($reflectionClass->getParentClass());
        }
    }
protected function extendsParents(ReflectionClass $reflectionClass)
    {
        $annotation = $this->parse($reflectionClass->getDocComment());

        $annotation['class'] = $reflectionClass->getName();

        array_unshift($this->parentAnnotations, $annotation);

        if (false !== $reflectionClass->getParentClass()) {
            $this->extendsParents($reflectionClass->getParentClass());
        }
    }
protected function extendsParents ( ReflectionClass $ reflectionClass ) { $ annotation = $ this -> parse ( $ reflectionClass -> getDocComment ( ) ) ; $ annotation [ 'class' ] = $ reflectionClass -> getName ( ) ; array_unshift ( $ this -> parentAnnotations , $ annotation ) ; if ( false !== $ reflectionClass -> getParentClass ( ) ) { $ this -> extendsParents ( $ reflectionClass -> getParentClass ( ) ) ; } }
Recursive reflection.

@param ReflectionClass $reflectionClass
@return void
Recursive reflection .