src/ServiceDefinition.php
public function calls(string $method, array $arguments = []) : ServiceDefinition
    {
        return $this->addMethodCall($method, new ServiceArguments($arguments));
    }
public function calls(string $method, array $arguments = []) : ServiceDefinition
    {
        return $this->addMethodCall($method, new ServiceArguments($arguments));
    }
Adds a method call to the service definition, the arguments should be set as an array.

@param string            $method The name of the method to be called.
@param array             $arguments The method arguments as array.
@return self