protected function getDependencyTree(string $className): array
    {
        Assertion::notEmpty($this->tree, 'Cannot get dependency tree - the tree was not yet build using buildTree()');

        $descendants = $this->tree->getVerticesDescendant($this->graph->getVertex($className));

        /** @var ProcessWrapper[] $descendantProcesses */
        $descendantProcesses = [];

        /** @var Vertex $descendant */
        foreach ($descendants as $descendant) {
            $descendantProcesses[$descendant->getId()] = $this->processes[$descendant->getId()];
        }

        return $descendantProcesses;
    }
protected function getDependencyTree(string $className): array
    {
        Assertion::notEmpty($this->tree, 'Cannot get dependency tree - the tree was not yet build using buildTree()');

        $descendants = $this->tree->getVerticesDescendant($this->graph->getVertex($className));

        /** @var ProcessWrapper[] $descendantProcesses */
        $descendantProcesses = [];

        /** @var Vertex $descendant */
        foreach ($descendants as $descendant) {
            $descendantProcesses[$descendant->getId()] = $this->processes[$descendant->getId()];
        }

        return $descendantProcesses;
    }
protected function getDependencyTree ( string $ className ) : array { Assertion :: notEmpty ( $ this -> tree , 'Cannot get dependency tree - the tree was not yet build using buildTree()' ) ; $ descendants = $ this -> tree -> getVerticesDescendant ( $ this -> graph -> getVertex ( $ className ) ) ; /** @var ProcessWrapper[] $descendantProcesses */ $ descendantProcesses = [ ] ; /** @var Vertex $descendant */ foreach ( $ descendants as $ descendant ) { $ descendantProcesses [ $ descendant -> getId ( ) ] = $ this -> processes [ $ descendant -> getId ( ) ] ; } return $ descendantProcesses ; }
Get all wrapped processes that depends on process of given name.

@return ProcessWrapper[]
Get all wrapped processes that depends on process of given name .