protected function getMailCatcherMessage($id) { $client = new Client(); $request = $client->get(self::MAILCATCHER_URL . 'messages/' . $id . '.json'); $response = $request->send(); return json_decode($response->getBody(true)); }