src/ServiceDefinition.php
public function addMethodCall(string $methodName, ServiceArguments $arguments) : ServiceDefinition
    {
        $this->methodCallers[] = [$methodName, $arguments]; return $this;
    }
public function addMethodCall(string $methodName, ServiceArguments $arguments) : ServiceDefinition
    {
        $this->methodCallers[] = [$methodName, $arguments]; return $this;
    }
Adds a method call to the service definition, the arguments must be set with a ServiceArguments instance.

@param string                    $methodName The name of the method to be called.
@param ServiceArguments          $arguments An `ServiceArguments` instance for the method call.
@return self