PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 1.2.27
Booking for Appointments and Events Calendar – Amelia v1.2.27
2.4.5 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 / Schedule / SpecialDayPeriodService.php
ameliabooking / src / Domain / Entity / Schedule Last commit date
DayOff.php 1 year ago Period.php 1 year ago PeriodLocation.php 1 year ago PeriodService.php 1 year ago SpecialDay.php 1 year ago SpecialDayPeriod.php 1 year ago SpecialDayPeriodLocation.php 1 year ago SpecialDayPeriodService.php 1 year ago TimeOut.php 1 year ago WeekDay.php 1 year ago
SpecialDayPeriodService.php
79 lines
1 <?php
2
3 /**
4 * @copyright © TMS-Plugins. All rights reserved.
5 * @licence See LICENCE.md for license details.
6 */
7
8 namespace AmeliaBooking\Domain\Entity\Schedule;
9
10 use AmeliaBooking\Domain\ValueObjects\Number\Integer\Id;
11
12 /**
13 * Class SpecialDayPeriodService
14 *
15 * @package AmeliaBooking\Domain\Entity\Schedule
16 */
17 class SpecialDayPeriodService
18 {
19 /** @var Id */
20 private $id;
21
22 /** @var Id */
23 private $serviceId;
24
25 /**
26 * SpecialDayPeriodService constructor.
27 *
28 * @param Id $serviceId
29 */
30 public function __construct(
31 Id $serviceId
32 ) {
33 $this->serviceId = $serviceId;
34 }
35
36 /**
37 * @return Id
38 */
39 public function getId()
40 {
41 return $this->id;
42 }
43
44 /**
45 * @param Id $id
46 */
47 public function setId(Id $id)
48 {
49 $this->id = $id;
50 }
51
52 /**
53 * @return Id
54 */
55 public function getServiceId()
56 {
57 return $this->serviceId;
58 }
59
60 /**
61 * @param Id $serviceId
62 */
63 public function setServiceId(Id $serviceId)
64 {
65 $this->serviceId = $serviceId;
66 }
67
68 /**
69 * @return array
70 */
71 public function toArray()
72 {
73 return [
74 'id' => null !== $this->getId() ? $this->getId()->getValue() : null,
75 'serviceId' => $this->serviceId->getValue(),
76 ];
77 }
78 }
79