private function getFactoryNode(DependencyInterface $dependency) : array
    {
        $prop = $this->privateProperty;
        $newInstance = $prop($dependency, 'newInstance');
        // class name
        $class = $prop($newInstance, 'class');
        $setterMethods = (array) $prop($prop($newInstance, 'setterMethods'), 'setterMethods');
        $arguments = (array) $prop($prop($newInstance, 'arguments'), 'arguments');
        $postConstruct = (string) $prop($dependency, 'postConstruct');

        return $this->factoryCompiler->getFactoryCode($class, $arguments, $setterMethods, $postConstruct);
    }
private function getFactoryNode(DependencyInterface $dependency) : array
    {
        $prop = $this->privateProperty;
        $newInstance = $prop($dependency, 'newInstance');
        // class name
        $class = $prop($newInstance, 'class');
        $setterMethods = (array) $prop($prop($newInstance, 'setterMethods'), 'setterMethods');
        $arguments = (array) $prop($prop($newInstance, 'arguments'), 'arguments');
        $postConstruct = (string) $prop($dependency, 'postConstruct');

        return $this->factoryCompiler->getFactoryCode($class, $arguments, $setterMethods, $postConstruct);
    }
private function getFactoryNode ( DependencyInterface $ dependency ) : array { $ prop = $ this -> privateProperty ; $ newInstance = $ prop ( $ dependency , 'newInstance' ) ; // class name $ class = $ prop ( $ newInstance , 'class' ) ; $ setterMethods = ( array ) $ prop ( $ prop ( $ newInstance , 'setterMethods' ) , 'setterMethods' ) ; $ arguments = ( array ) $ prop ( $ prop ( $ newInstance , 'arguments' ) , 'arguments' ) ; $ postConstruct = ( string ) $ prop ( $ dependency , 'postConstruct' ) ; return $ this -> factoryCompiler -> getFactoryCode ( $ class , $ arguments , $ setterMethods , $ postConstruct ) ; }
Return generic factory code

This code is used by Dependency and DependencyProvider

@return \PhpParser\Node[]
Return generic factory code