public function mergeWith(self $methodCallsBag) : self { $clone = clone $methodCallsBag; foreach ($this->methodCalls as $methodCall) { $clone->methodCalls[] = $methodCall; } return $clone; }