@@ 228-239 (lines=12) @@ | ||
225 | ) |
|
226 | ); |
|
227 | } |
|
228 | if ($ticket->get_event_ID() !== $this->event->ID()) { |
|
229 | throw new DomainException( |
|
230 | sprintf( |
|
231 | esc_html__( |
|
232 | 'An EE_Ticket for Event %1$d was supplied while calculating event space availability for Event %2$d.', |
|
233 | 'event_espresso' |
|
234 | ), |
|
235 | $ticket->get_event_ID(), |
|
236 | $this->event->ID() |
|
237 | ) |
|
238 | ); |
|
239 | } |
|
240 | } |
|
241 | ||
242 | ||
@@ 261-272 (lines=12) @@ | ||
258 | */ |
|
259 | public function setDatetime(EE_Datetime $datetime) |
|
260 | { |
|
261 | if ($datetime->event()->ID() !== $this->event->ID()) { |
|
262 | throw new DomainException( |
|
263 | sprintf( |
|
264 | esc_html__( |
|
265 | 'An EE_Datetime for Event %1$d was supplied while calculating event space availability for Event %2$d.', |
|
266 | 'event_espresso' |
|
267 | ), |
|
268 | $datetime->event()->ID(), |
|
269 | $this->event->ID() |
|
270 | ) |
|
271 | ); |
|
272 | } |
|
273 | $this->datetimes[ $datetime->ID() ] = $datetime; |
|
274 | } |
|
275 |