Library/ClassDefinition.php
public function getDependencies()
    {
        $dependencies = [];
        if ($this->extendsClassDefinition && $this->extendsClassDefinition instanceof self) {
            $dependencies[] = $this->extendsClassDefinition;
        }

        foreach ($this->implementedInterfaceDefinitions as $interfaceDefinition) {
            if ($interfaceDefinition instanceof self) {
                $dependencies[] = $interfaceDefinition;
            }
        }

        return $dependencies;
    }
public function getDependencies()
    {
        $dependencies = [];
        if ($this->extendsClassDefinition && $this->extendsClassDefinition instanceof self) {
            $dependencies[] = $this->extendsClassDefinition;
        }

        foreach ($this->implementedInterfaceDefinitions as $interfaceDefinition) {
            if ($interfaceDefinition instanceof self) {
                $dependencies[] = $interfaceDefinition;
            }
        }

        return $dependencies;
    }
public function getDependencies ( ) { $ dependencies = [ ] ; if ( $ this -> extendsClassDefinition && $ this -> extendsClassDefinition instanceof self ) { $ dependencies [ ] = $ this -> extendsClassDefinition ; } foreach ( $ this -> implementedInterfaceDefinitions as $ interfaceDefinition ) { if ( $ interfaceDefinition instanceof self ) { $ dependencies [ ] = $ interfaceDefinition ; } } return $ dependencies ; }
Calculate the dependency rank of the class based on its dependencies.

@return ClassDefinition[]
Calculate the dependency rank of the class based on its dependencies .