private function setDefinitionMethodCalls(Definition $definition, array $array)
    {
        if (isset($array['calls'])) {
            foreach ($array['calls'] as $call) {
                $args = [];
                if (isset($call[1])) {
                    foreach ($call[1] as $arg) {
                        $args[] = $this->convertArgument($arg);
                    }
                }

                $definition->addMethodCall($call[0], $args);
            }
        }
    }
private function setDefinitionMethodCalls(Definition $definition, array $array)
    {
        if (isset($array['calls'])) {
            foreach ($array['calls'] as $call) {
                $args = [];
                if (isset($call[1])) {
                    foreach ($call[1] as $arg) {
                        $args[] = $this->convertArgument($arg);
                    }
                }

                $definition->addMethodCall($call[0], $args);
            }
        }
    }
private function setDefinitionMethodCalls ( Definition $ definition , array $ array ) { if ( isset ( $ array [ 'calls' ] ) ) { foreach ( $ array [ 'calls' ] as $ call ) { $ args = [ ] ; if ( isset ( $ call [ 1 ] ) ) { foreach ( $ call [ 1 ] as $ arg ) { $ args [ ] = $ this -> convertArgument ( $ arg ) ; } } $ definition -> addMethodCall ( $ call [ 0 ] , $ args ) ; } } }
Set the definition method calls into definition object if it exists.

@param Definition $definition definition object to hydrate
@param array      $array      raw definition datas
Set the definition method calls into definition object if it exists .