Symfony\Component\DependencyInjection\Dumper\XmlDumper::addMethodCalls PHP Method

addMethodCalls() private method

Adds method calls.
private addMethodCalls ( array $methodcalls, DOMElement $parent ) : void
$methodcalls array
$parent DOMElement
return void
    private function addMethodCalls(array $methodcalls, \DOMElement $parent)
    {
        foreach ($methodcalls as $methodcall) {
            $call = $this->document->createElement('call');
            $call->setAttribute('method', $methodcall[0]);
            if (count($methodcall[1])) {
                $this->convertParameters($methodcall[1], 'argument', $call);
            }
            $parent->appendChild($call);
        }
    }