createBody(), $status, $headers); } /** * Create the message body. * * @return StreamInterface */ private function createBody(): StreamInterface { $body = new Stream('php://temp', 'wb+'); $body->write((string) \base64_decode(self::BASE_64_IMAGE)); $body->rewind(); return $body; } }