From e32031f671c91cd9328d3fdae506a4b0977971aa Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Sun, 6 Jan 2019 08:13:29 +0100 Subject: [PATCH] Make all models final (#513) --- src/Mailgun/Model/Attachment/Attachment.php | 2 +- src/Mailgun/Model/Event/Event.php | 2 +- src/Mailgun/Model/Event/EventResponse.php | 2 +- src/Mailgun/Model/Message/SendResponse.php | 2 +- src/Mailgun/Model/Message/ShowResponse.php | 2 +- src/Mailgun/Model/Stats/TotalResponseItem.php | 2 +- src/Mailgun/Model/Suppression/Bounce/Bounce.php | 2 +- src/Mailgun/Model/Suppression/Complaint/Complaint.php | 2 +- src/Mailgun/Model/Suppression/Unsubscribe/Unsubscribe.php | 2 +- src/Mailgun/Model/Tag/Tag.php | 2 +- src/Mailgun/Model/Webhook/CreateResponse.php | 2 +- src/Mailgun/Model/Webhook/DeleteResponse.php | 2 +- src/Mailgun/Model/Webhook/IndexResponse.php | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/Mailgun/Model/Attachment/Attachment.php b/src/Mailgun/Model/Attachment/Attachment.php index f9ebe7e..80e3976 100644 --- a/src/Mailgun/Model/Attachment/Attachment.php +++ b/src/Mailgun/Model/Attachment/Attachment.php @@ -14,7 +14,7 @@ use Mailgun\Model\ApiResponse; /** * @author Tobias Nyholm */ -class Attachment implements ApiResponse +final class Attachment implements ApiResponse { private $data; diff --git a/src/Mailgun/Model/Event/Event.php b/src/Mailgun/Model/Event/Event.php index 5165bd2..63f6c68 100644 --- a/src/Mailgun/Model/Event/Event.php +++ b/src/Mailgun/Model/Event/Event.php @@ -12,7 +12,7 @@ namespace Mailgun\Model\Event; /** * @author Tobias Nyholm */ -class Event +final class Event { /** * @var string status diff --git a/src/Mailgun/Model/Event/EventResponse.php b/src/Mailgun/Model/Event/EventResponse.php index 303492a..6daa3e0 100644 --- a/src/Mailgun/Model/Event/EventResponse.php +++ b/src/Mailgun/Model/Event/EventResponse.php @@ -16,7 +16,7 @@ use Mailgun\Model\ApiResponse; /** * @author Tobias Nyholm */ -class EventResponse implements ApiResponse, PagingProvider +final class EventResponse implements ApiResponse, PagingProvider { use PaginationResponse; diff --git a/src/Mailgun/Model/Message/SendResponse.php b/src/Mailgun/Model/Message/SendResponse.php index 8bd8e8c..df57ffe 100644 --- a/src/Mailgun/Model/Message/SendResponse.php +++ b/src/Mailgun/Model/Message/SendResponse.php @@ -14,7 +14,7 @@ use Mailgun\Model\ApiResponse; /** * @author Tobias Nyholm */ -class SendResponse implements ApiResponse +final class SendResponse implements ApiResponse { /** * @var string diff --git a/src/Mailgun/Model/Message/ShowResponse.php b/src/Mailgun/Model/Message/ShowResponse.php index 1a1a553..1902d23 100644 --- a/src/Mailgun/Model/Message/ShowResponse.php +++ b/src/Mailgun/Model/Message/ShowResponse.php @@ -14,7 +14,7 @@ use Mailgun\Model\ApiResponse; /** * @author Tobias Nyholm */ -class ShowResponse implements ApiResponse +final class ShowResponse implements ApiResponse { /** * Only available with message/rfc2822. diff --git a/src/Mailgun/Model/Stats/TotalResponseItem.php b/src/Mailgun/Model/Stats/TotalResponseItem.php index 07dc5b8..cb39c3d 100644 --- a/src/Mailgun/Model/Stats/TotalResponseItem.php +++ b/src/Mailgun/Model/Stats/TotalResponseItem.php @@ -12,7 +12,7 @@ namespace Mailgun\Model\Stats; /** * @author Tobias Nyholm */ -class TotalResponseItem +final class TotalResponseItem { /** * @var \DateTime diff --git a/src/Mailgun/Model/Suppression/Bounce/Bounce.php b/src/Mailgun/Model/Suppression/Bounce/Bounce.php index 5537782..8489770 100644 --- a/src/Mailgun/Model/Suppression/Bounce/Bounce.php +++ b/src/Mailgun/Model/Suppression/Bounce/Bounce.php @@ -12,7 +12,7 @@ namespace Mailgun\Model\Suppression\Bounce; /** * @author Sean Johnson */ -class Bounce +final class Bounce { /** * @var string diff --git a/src/Mailgun/Model/Suppression/Complaint/Complaint.php b/src/Mailgun/Model/Suppression/Complaint/Complaint.php index bcfb2ad..60197da 100644 --- a/src/Mailgun/Model/Suppression/Complaint/Complaint.php +++ b/src/Mailgun/Model/Suppression/Complaint/Complaint.php @@ -12,7 +12,7 @@ namespace Mailgun\Model\Suppression\Complaint; /** * @author Sean Johnson */ -class Complaint +final class Complaint { /** * @var string diff --git a/src/Mailgun/Model/Suppression/Unsubscribe/Unsubscribe.php b/src/Mailgun/Model/Suppression/Unsubscribe/Unsubscribe.php index 0836428..8f70470 100644 --- a/src/Mailgun/Model/Suppression/Unsubscribe/Unsubscribe.php +++ b/src/Mailgun/Model/Suppression/Unsubscribe/Unsubscribe.php @@ -12,7 +12,7 @@ namespace Mailgun\Model\Suppression\Unsubscribe; /** * @author Sean Johnson */ -class Unsubscribe +final class Unsubscribe { /** * @var string diff --git a/src/Mailgun/Model/Tag/Tag.php b/src/Mailgun/Model/Tag/Tag.php index 1a88ff5..16986c5 100644 --- a/src/Mailgun/Model/Tag/Tag.php +++ b/src/Mailgun/Model/Tag/Tag.php @@ -9,7 +9,7 @@ namespace Mailgun\Model\Tag; -class Tag +final class Tag { /** * @var string diff --git a/src/Mailgun/Model/Webhook/CreateResponse.php b/src/Mailgun/Model/Webhook/CreateResponse.php index 88536fe..83bc60c 100644 --- a/src/Mailgun/Model/Webhook/CreateResponse.php +++ b/src/Mailgun/Model/Webhook/CreateResponse.php @@ -12,6 +12,6 @@ namespace Mailgun\Model\Webhook; /** * @author Tobias Nyholm */ -class CreateResponse extends BaseResponse +final class CreateResponse extends BaseResponse { } diff --git a/src/Mailgun/Model/Webhook/DeleteResponse.php b/src/Mailgun/Model/Webhook/DeleteResponse.php index 85f2adf..369c6a8 100644 --- a/src/Mailgun/Model/Webhook/DeleteResponse.php +++ b/src/Mailgun/Model/Webhook/DeleteResponse.php @@ -12,6 +12,6 @@ namespace Mailgun\Model\Webhook; /** * @author Tobias Nyholm */ -class DeleteResponse extends BaseResponse +final class DeleteResponse extends BaseResponse { } diff --git a/src/Mailgun/Model/Webhook/IndexResponse.php b/src/Mailgun/Model/Webhook/IndexResponse.php index 7d444c4..221ee87 100644 --- a/src/Mailgun/Model/Webhook/IndexResponse.php +++ b/src/Mailgun/Model/Webhook/IndexResponse.php @@ -14,7 +14,7 @@ use Mailgun\Model\ApiResponse; /** * @author Tobias Nyholm */ -class IndexResponse implements ApiResponse +final class IndexResponse implements ApiResponse { /** * @var array