diff --git a/src/Mailgun/Model/Event/Event.php b/src/Mailgun/Model/Event/Event.php index 63f6c68..acc3c78 100644 --- a/src/Mailgun/Model/Event/Event.php +++ b/src/Mailgun/Model/Event/Event.php @@ -126,7 +126,7 @@ final class Event * @param string $id * @param float $timestamp */ - public function __construct($event, $id, $timestamp) + private function __construct($event, $id, $timestamp) { $this->event = $event; $this->id = $id; diff --git a/src/Mailgun/Model/Event/EventResponse.php b/src/Mailgun/Model/Event/EventResponse.php index 6daa3e0..9bdf369 100644 --- a/src/Mailgun/Model/Event/EventResponse.php +++ b/src/Mailgun/Model/Event/EventResponse.php @@ -29,7 +29,7 @@ final class EventResponse implements ApiResponse, PagingProvider * @param Event[] $items * @param array $paging */ - public function __construct(array $items, array $paging) + private function __construct(array $items, array $paging) { $this->items = $items; $this->paging = $paging; diff --git a/src/Mailgun/Model/Tag/IndexResponse.php b/src/Mailgun/Model/Tag/IndexResponse.php index 2697db1..54209fc 100644 --- a/src/Mailgun/Model/Tag/IndexResponse.php +++ b/src/Mailgun/Model/Tag/IndexResponse.php @@ -29,7 +29,7 @@ final class IndexResponse implements ApiResponse, PagingProvider * @param Tag[] $items * @param array $paging */ - public function __construct(array $items, array $paging) + private function __construct(array $items, array $paging) { $this->items = $items; $this->paging = $paging; diff --git a/src/Mailgun/Model/Tag/Tag.php b/src/Mailgun/Model/Tag/Tag.php index 16986c5..681a969 100644 --- a/src/Mailgun/Model/Tag/Tag.php +++ b/src/Mailgun/Model/Tag/Tag.php @@ -37,7 +37,7 @@ final class Tag * @param \DateTime $firstSeen * @param \DateTime $lastSeen */ - public function __construct($tag, $description, \DateTime $firstSeen = null, \DateTime $lastSeen = null) + private function __construct($tag, $description, \DateTime $firstSeen = null, \DateTime $lastSeen = null) { $this->tag = $tag; $this->description = $description; diff --git a/src/Mailgun/Model/Webhook/BaseResponse.php b/src/Mailgun/Model/Webhook/BaseResponse.php index 6f722e8..9e7f6c8 100644 --- a/src/Mailgun/Model/Webhook/BaseResponse.php +++ b/src/Mailgun/Model/Webhook/BaseResponse.php @@ -32,7 +32,7 @@ abstract class BaseResponse implements ApiResponse * @param array $webhook * @param string $message */ - public function __construct(array $webhook, $message) + private function __construct(array $webhook, $message) { $this->webhook = $webhook; $this->message = $message; diff --git a/src/Mailgun/Model/Webhook/ShowResponse.php b/src/Mailgun/Model/Webhook/ShowResponse.php index 7acb2de..bafd878 100644 --- a/src/Mailgun/Model/Webhook/ShowResponse.php +++ b/src/Mailgun/Model/Webhook/ShowResponse.php @@ -24,7 +24,7 @@ class ShowResponse implements ApiResponse /** * @param array $webhook */ - public function __construct(array $webhook) + private function __construct(array $webhook) { $this->webhook = $webhook; }