src/ObjectDefinition.php
public function addMethodCall($methodName)
    {
        $arguments = func_get_args();
        array_shift($arguments);

        $this->methodCalls[] = new MethodCall($methodName, $arguments);

        return $this;
    }
public function addMethodCall($methodName)
    {
        $arguments = func_get_args();
        array_shift($arguments);

        $this->methodCalls[] = new MethodCall($methodName, $arguments);

        return $this;
    }
public function addMethodCall ( $ methodName ) { $ arguments = func_get_args ( ) ; array_shift ( $ arguments ) ; $ this -> methodCalls [ ] = new MethodCall ( $ methodName , $ arguments ) ; return $ this ; }
Set a method to be called after instantiating the class.

After the $methodName parameter, this method take as many parameters as necessary.

@param string $methodName Name of the method to call.
@param string|number|bool|array|ReferenceDefinitionInterface... Can be a scalar value, an array of scalar or
a reference to another entry. See \Assembly\ObjectInitializer\MethodCall::__construct fore more informations.

@return $this
Set a method to be called after instantiating the class .