src/Transfer/Procedure/Procedure.php
private function getParentSettings($type, $context = null)
    {
        $context = $this->normalizeContext($context);

        $methods = array(
            'source' => 'getSources',
            'worker' => 'getWorkers',
            'target' => 'getTargets',
        );

        if (!array_key_exists($type, $methods) || $context->getParent() === null) {
            return array();
        }

        $settings = array_merge(
            $this->getParentComponentSettings($context->getParent(), $methods[$type]),
            $this->getParentSettings($type, $context->getParent())
        );

        return $settings;
    }
private function getParentSettings($type, $context = null)
    {
        $context = $this->normalizeContext($context);

        $methods = array(
            'source' => 'getSources',
            'worker' => 'getWorkers',
            'target' => 'getTargets',
        );

        if (!array_key_exists($type, $methods) || $context->getParent() === null) {
            return array();
        }

        $settings = array_merge(
            $this->getParentComponentSettings($context->getParent(), $methods[$type]),
            $this->getParentSettings($type, $context->getParent())
        );

        return $settings;
    }
private function getParentSettings ( $ type , $ context = null ) { $ context = $ this -> normalizeContext ( $ context ) ; $ methods = array ( 'source' => 'getSources' , 'worker' => 'getWorkers' , 'target' => 'getTargets' , ) ; if ( ! array_key_exists ( $ type , $ methods ) || $ context -> getParent ( ) === null ) { return array ( ) ; } $ settings = array_merge ( $ this -> getParentComponentSettings ( $ context -> getParent ( ) , $ methods [ $ type ] ) , $ this -> getParentSettings ( $ type , $ context -> getParent ( ) ) ) ; return $ settings ; }
Returns parent settings.

@param string    $type    Setting type (source, worker or target)
@param Procedure $context

@return array Setting collection

@internal
Returns parent settings .