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; - } -}