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
        );
    }