client = new Client([ 'base_uri' => $url, 'headers' => [ 'Content-Type' => 'application/json', ] ]); } protected function doTrack(): void { foreach ($this->messages as $message) { $this->client->patch('/conversion/v1/replace', [ 'body' => $message->toString(), ]); } } }