src/Internal/CommitOrderCalculator.php
public function addClass(DocumentMetadata $metadata): void
    {
        $this->graph->addNode($metadata->name);

        $assocNames = $metadata->getAssociationNames();
        foreach ($assocNames as $assocName) {
            $targetClass = $metadata->getAssociationTargetClass($assocName);
            $this->graph->addNode($targetClass);
            $this->graph->connect($metadata->name, $targetClass);
        }
    }
public function addClass(DocumentMetadata $metadata): void
    {
        $this->graph->addNode($metadata->name);

        $assocNames = $metadata->getAssociationNames();
        foreach ($assocNames as $assocName) {
            $targetClass = $metadata->getAssociationTargetClass($assocName);
            $this->graph->addNode($targetClass);
            $this->graph->connect($metadata->name, $targetClass);
        }
    }
public function addClass ( DocumentMetadata $ metadata ) : void { $ this -> graph -> addNode ( $ metadata -> name ) ; $ assocNames = $ metadata -> getAssociationNames ( ) ; foreach ( $ assocNames as $ assocName ) { $ targetClass = $ metadata -> getAssociationTargetClass ( $ assocName ) ; $ this -> graph -> addNode ( $ targetClass ) ; $ this -> graph -> connect ( $ metadata -> name , $ targetClass ) ; } }
Adds a document class to the dependency graph
and evaluates its associations.

@param DocumentMetadata $metadata
Adds a document class to the dependency graph and evaluates its associations .