private function analyzeDependencies(array $process, PhpStringParser $phpParser, GeneratorDataObject $generator)
    {
        $generator = clone $generator;

        if (isset($process['dependencies']) === true && is_array($process['dependencies']) === true) {
            foreach ($process['dependencies'] as $dependencieName) {
                $generator->addDependency(
                    $this->analyze($dependencieName, $phpParser, $generator, $generator->getDto()->getMetadata())
                );
            }
            $generator = $this->addDependenciesVariablesToMainGenerator($generator);
        }

        return $generator;
    }
private function analyzeDependencies(array $process, PhpStringParser $phpParser, GeneratorDataObject $generator)
    {
        $generator = clone $generator;

        if (isset($process['dependencies']) === true && is_array($process['dependencies']) === true) {
            foreach ($process['dependencies'] as $dependencieName) {
                $generator->addDependency(
                    $this->analyze($dependencieName, $phpParser, $generator, $generator->getDto()->getMetadata())
                );
            }
            $generator = $this->addDependenciesVariablesToMainGenerator($generator);
        }

        return $generator;
    }
private function analyzeDependencies ( array $ process , PhpStringParser $ phpParser , GeneratorDataObject $ generator ) { $ generator = clone $ generator ; if ( isset ( $ process [ 'dependencies' ] ) === true && is_array ( $ process [ 'dependencies' ] ) === true ) { foreach ( $ process [ 'dependencies' ] as $ dependencieName ) { $ generator -> addDependency ( $ this -> analyze ( $ dependencieName , $ phpParser , $ generator , $ generator -> getDto ( ) -> getMetadata ( ) ) ) ; } $ generator = $ this -> addDependenciesVariablesToMainGenerator ( $ generator ) ; } return $ generator ; }
Analyze the dependencies generator

@param  array                                         $process
@param  PhpStringParser                               $phpParser
@param  GeneratorDataObject                           $generator
@return \CrudGenerator\Generators\GeneratorDataObject
Analyze the dependencies generator