From 6fc6f7f0254436484e07235ec8e964e0fdb39ee9 Mon Sep 17 00:00:00 2001 From: Pelle Marius Jensen Date: Wed, 8 Jun 2022 12:57:26 +0200 Subject: [PATCH 1/2] CampaignRequest: Change end datetime format and add getset --- .../RecurringPayment/CampaignRequest.php | 50 ++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/src/Model/RecurringPayment/CampaignRequest.php b/src/Model/RecurringPayment/CampaignRequest.php index e72df15..3dd9a86 100644 --- a/src/Model/RecurringPayment/CampaignRequest.php +++ b/src/Model/RecurringPayment/CampaignRequest.php @@ -19,7 +19,55 @@ class CampaignRequest /** * @var \DateTimeInterface - * @Serializer\Type("DateTime<'Y-m-d\TH:i:s.u\Z'>") + * @Serializer\Type("DateTime<'Y-m-d\TH:i:s\Z'>") */ protected $end; + + /** + * Get the value of end + * + * @return \DateTimeInterface + */ + public function getEnd() + { + return $this->end; + } + + /** + * Set the value of end + * + * @param \DateTimeInterface $end + * + * @return self + */ + public function setEnd(\DateTimeInterface $end) + { + $this->end = $end; + + return $this; + } + + /** + * Get the value of campaignPrice + * + * @return int + */ + public function getCampaignPrice() + { + return $this->campaignPrice; + } + + /** + * Set the value of campaignPrice + * + * @param int $campaignPrice + * + * @return self + */ + public function setCampaignPrice(int $campaignPrice) + { + $this->campaignPrice = $campaignPrice; + + return $this; + } } From a44dba349f86247fb2c76f5a3960afbe924add9f Mon Sep 17 00:00:00 2001 From: Pelle Marius Jensen Date: Thu, 9 Jun 2022 14:21:22 +0200 Subject: [PATCH 2/2] remove trailing spaces --- src/Model/RecurringPayment/CampaignRequest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Model/RecurringPayment/CampaignRequest.php b/src/Model/RecurringPayment/CampaignRequest.php index 3dd9a86..43e5f87 100644 --- a/src/Model/RecurringPayment/CampaignRequest.php +++ b/src/Model/RecurringPayment/CampaignRequest.php @@ -27,7 +27,7 @@ class CampaignRequest * Get the value of end * * @return \DateTimeInterface - */ + */ public function getEnd() { return $this->end; @@ -39,7 +39,7 @@ public function getEnd() * @param \DateTimeInterface $end * * @return self - */ + */ public function setEnd(\DateTimeInterface $end) { $this->end = $end; @@ -51,7 +51,7 @@ public function setEnd(\DateTimeInterface $end) * Get the value of campaignPrice * * @return int - */ + */ public function getCampaignPrice() { return $this->campaignPrice; @@ -63,7 +63,7 @@ public function getCampaignPrice() * @param int $campaignPrice * * @return self - */ + */ public function setCampaignPrice(int $campaignPrice) { $this->campaignPrice = $campaignPrice;