DI\Definition\ObjectDefinition::mergeConstructorInjection PHP Method

mergeConstructorInjection() private method

private mergeConstructorInjection ( ObjectDefinition $definition )
$definition ObjectDefinition
    private function mergeConstructorInjection(ObjectDefinition $definition)
    {
        if ($definition->getConstructorInjection() !== null) {
            if ($this->constructorInjection !== null) {
                // Merge
                $this->constructorInjection->merge($definition->getConstructorInjection());
            } else {
                // Set
                $this->constructorInjection = $definition->getConstructorInjection();
            }
        }
    }