protected getMailCatcherMessage ( integer $id ) : object | ||
$id | integer | メッセージの ID |
return | object | MailCatcher のメッセージ |
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));
}