DI\Definition\ObjectDefinition::mergeMethodCalls PHP Method

mergeMethodCalls() private method

private mergeMethodCalls ( array $calls, $methodName )
$calls array
    private function mergeMethodCalls(array $calls, $methodName)
    {
        foreach ($calls as $index => $methodInjection) {
            // Merge
            if (array_key_exists($index, $this->methodInjections[$methodName])) {
                // Merge
                $this->methodInjections[$methodName][$index]->merge($methodInjection);
            } else {
                // Add
                $this->methodInjections[$methodName][$index] = $methodInjection;
            }
        }
    }