Sets the methods to call after service initialization.
$this
public function setMethodCalls(array $calls = []) : static { $this->calls = []; foreach ($calls as $call) { $this->addMethodCall($call[0], $call[1], $call[2] ?? false); } return $this; }