PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 1.2.11
Booking for Appointments and Events Calendar – Amelia v1.2.11
2.4.4 2.4.3 2.4.2 2.4.1 2.4 trunk 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 1.2.22 1.2.23 1.2.24 1.2.25 1.2.26 1.2.27 1.2.28 1.2.29 1.2.3 1.2.30 1.2.31 1.2.32 1.2.33 1.2.34 1.2.35 1.2.36 1.2.37 1.2.38 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.3
ameliabooking / src / Domain / Entity / Booking / Event / CustomerBookingEventPeriod.php
ameliabooking / src / Domain / Entity / Booking / Event Last commit date
CustomerBookingEventPeriod.php 7 years ago CustomerBookingEventTicket.php 4 years ago Event.php 2 years ago EventPeriod.php 4 years ago EventTag.php 7 years ago EventTicket.php 1 year ago
CustomerBookingEventPeriod.php
87 lines
1 <?php
2 /**
3 * @copyright © TMS-Plugins. All rights reserved.
4 * @licence See LICENCE.md for license details.
5 */
6
7 namespace AmeliaBooking\Domain\Entity\Booking\Event;
8
9 use AmeliaBooking\Domain\ValueObjects\Number\Integer\Id;
10
11 /**
12 * Class CustomerBookingEventPeriod
13 *
14 * @package AmeliaBooking\Domain\Entity\Booking\Event
15 */
16 class CustomerBookingEventPeriod
17 {
18 /** @var Id */
19 private $id;
20
21 /** @var Id */
22 private $customerBookingId;
23
24 /** @var Id */
25 protected $eventPeriodId;
26
27 /**
28 * @return Id
29 */
30 public function getId()
31 {
32 return $this->id;
33 }
34
35 /**
36 * @param Id $id
37 */
38 public function setId(Id $id)
39 {
40 $this->id = $id;
41 }
42
43 /**
44 * @return Id
45 */
46 public function getEventPeriodId()
47 {
48 return $this->eventPeriodId;
49 }
50
51 /**
52 * @param Id $eventPeriodId
53 */
54 public function setEventPeriodId(Id $eventPeriodId)
55 {
56 $this->eventPeriodId = $eventPeriodId;
57 }
58
59 /**
60 * @return Id
61 */
62 public function getCustomerBookingId()
63 {
64 return $this->customerBookingId;
65 }
66
67 /**
68 * @param Id $customerBookingId
69 */
70 public function setCustomerBookingId(Id $customerBookingId)
71 {
72 $this->customerBookingId = $customerBookingId;
73 }
74
75 /**
76 * @return array
77 */
78 public function toArray()
79 {
80 return [
81 'id' => $this->getId() ? $this->getId()->getValue() : null,
82 'eventPeriodId' => $this->getEventPeriodId() ? $this->getEventPeriodId()->getValue() : null,
83 'customerBookingId' => $this->getCustomerBookingId() ? $this->getCustomerBookingId()->getValue() : null
84 ];
85 }
86 }
87