src/CodeGeneration/Generator/Relations/GenerateRelationCodeForEntity.php
private function setDestinationDirectory(
        string $className,
        array $subDirsNoEntities
    ): void {

        $subDirsNoEntities = \array_slice($subDirsNoEntities, 2);

        $this->destinationDirectory = $this->pathHelper->resolvePath(
            $this->pathToProjectRoot
            . '/' . $this->srcSubFolderName
            . AbstractGenerator::ENTITY_RELATIONS_FOLDER_NAME
            . \implode(
                '/',
                $subDirsNoEntities
            )
            . '/' . $className
        );
    }
private function setDestinationDirectory(
        string $className,
        array $subDirsNoEntities
    ): void {

        $subDirsNoEntities = \array_slice($subDirsNoEntities, 2);

        $this->destinationDirectory = $this->pathHelper->resolvePath(
            $this->pathToProjectRoot
            . '/' . $this->srcSubFolderName
            . AbstractGenerator::ENTITY_RELATIONS_FOLDER_NAME
            . \implode(
                '/',
                $subDirsNoEntities
            )
            . '/' . $className
        );
    }
private function setDestinationDirectory ( string $ className , array $ subDirsNoEntities ) : void { $ subDirsNoEntities = \ array_slice ( $ subDirsNoEntities , 2 ) ; $ this -> destinationDirectory = $ this -> pathHelper -> resolvePath ( $ this -> pathToProjectRoot . '/' . $ this -> srcSubFolderName . AbstractGenerator :: ENTITY_RELATIONS_FOLDER_NAME . \ implode ( '/' , $ subDirsNoEntities ) . '/' . $ className ) ; }
Calculate and set the destination full path to the destination directory for the generated relations files

@param string $className
@param array  $subDirsNoEntities

@return void
Calculate and set the destination full path to the destination directory for the generated relations files