From 1e00e8853e34db3fda536ab5c7e563ac49c7707e Mon Sep 17 00:00:00 2001 From: z38 Date: Sun, 26 Mar 2017 17:28:09 +0200 Subject: [PATCH] Remove unused error response class (#319) --- src/Mailgun/Model/ErrorResponse.php | 61 ----------------------------- 1 file changed, 61 deletions(-) delete mode 100644 src/Mailgun/Model/ErrorResponse.php diff --git a/src/Mailgun/Model/ErrorResponse.php b/src/Mailgun/Model/ErrorResponse.php deleted file mode 100644 index 1373bfd..0000000 --- a/src/Mailgun/Model/ErrorResponse.php +++ /dev/null @@ -1,61 +0,0 @@ -message = $message; - $this->error = $error; - } - - /** - * @param array - * - * @return self - */ - public static function create(array $data) - { - return new self( - isset($data['message']) ? $data['message'] : null, - isset($data['error']) ? $data['error'] : null - ); - } - - /** - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * @return string - */ - public function getError() - { - return $this->error; - } -}