1 | <?php |
||
10 | class BookingInfo implements JsonLdSerializableInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var string|null |
||
14 | */ |
||
15 | protected $phone; |
||
16 | |||
17 | /** |
||
18 | * @var string|null |
||
19 | */ |
||
20 | protected $email; |
||
21 | |||
22 | /** |
||
23 | * @var string|null |
||
24 | */ |
||
25 | protected $url; |
||
26 | |||
27 | /** |
||
28 | * @var string|null |
||
29 | */ |
||
30 | protected $urlLabel; |
||
31 | |||
32 | /** |
||
33 | * @var \DateTimeImmutable|null |
||
34 | */ |
||
35 | protected $availabilityStarts; |
||
36 | |||
37 | /** |
||
38 | * @var \DateTimeImmutable|null |
||
39 | */ |
||
40 | protected $availabilityEnds; |
||
41 | |||
42 | /** |
||
43 | * @param string|null $url |
||
44 | * @param string|null $urlLabel |
||
45 | * @param string|null $phone |
||
46 | * @param string|null $email |
||
47 | * @param \DateTimeImmutable|null $availabilityStarts |
||
48 | * @param \DateTimeImmutable|null $availabilityEnds |
||
49 | */ |
||
50 | public function __construct( |
||
75 | |||
76 | public function getPhone() |
||
80 | |||
81 | public function getEmail() |
||
85 | |||
86 | public function getUrl() |
||
90 | |||
91 | public function getUrlLabel() |
||
95 | |||
96 | /** |
||
97 | * @return \DateTimeImmutable|null |
||
98 | */ |
||
99 | public function getAvailabilityStarts() |
||
103 | |||
104 | /** |
||
105 | * @return \DateTimeImmutable|null |
||
106 | */ |
||
107 | public function getAvailabilityEnds() |
||
111 | |||
112 | /** |
||
113 | * {@inheritdoc} |
||
114 | */ |
||
115 | public function serialize() |
||
136 | |||
137 | /** |
||
138 | * {@inheritdoc} |
||
139 | */ |
||
140 | public static function deserialize(array $data) |
||
172 | |||
173 | /** |
||
174 | * {@inheritdoc} |
||
175 | */ |
||
176 | public function toJsonLd() |
||
180 | |||
181 | /** |
||
182 | * @param BookingInfo $otherBookingInfo |
||
183 | * @return bool |
||
184 | */ |
||
185 | public function sameAs(BookingInfo $otherBookingInfo) |
||
189 | |||
190 | /** |
||
191 | * @param Udb3ModelBookingInfo $udb3ModelBookingInfo |
||
192 | * @return BookingInfo |
||
193 | */ |
||
194 | public static function fromUdb3ModelBookingInfo(Udb3ModelBookingInfo $udb3ModelBookingInfo) |
||
232 | |||
233 | /** |
||
234 | * @param $string |
||
235 | * @return null|string |
||
236 | */ |
||
237 | private function castEmptyStringToNull($string) |
||
241 | } |
||
242 |