| @@ 189-200 (lines=12) @@ | ||
| 186 | )  | 
                                |
| 187 | );  | 
                                |
| 188 | }  | 
                                |
| 189 |         if ($ticket->get_event_ID() !== $this->event->ID()) { | 
                                |
| 190 | throw new DomainException(  | 
                                |
| 191 | sprintf(  | 
                                |
| 192 | esc_html__(  | 
                                |
| 193 | 'An EE_Ticket for Event %1$d was supplied while calculating event space availability for Event %2$d.',  | 
                                |
| 194 | 'event_espresso'  | 
                                |
| 195 | ),  | 
                                |
| 196 | $ticket->get_event_ID(),  | 
                                |
| 197 | $this->event->ID()  | 
                                |
| 198 | )  | 
                                |
| 199 | );  | 
                                |
| 200 | }  | 
                                |
| 201 | }  | 
                                |
| 202 | ||
| 203 | ||
| @@ 222-233 (lines=12) @@ | ||
| 219 | */  | 
                                |
| 220 | public function setDatetime(EE_Datetime $datetime)  | 
                                |
| 221 |     { | 
                                |
| 222 |         if ($datetime->event()->ID() !== $this->event->ID()) { | 
                                |
| 223 | throw new DomainException(  | 
                                |
| 224 | sprintf(  | 
                                |
| 225 | esc_html__(  | 
                                |
| 226 | 'An EE_Datetime for Event %1$d was supplied while calculating event space availability for Event %2$d.',  | 
                                |
| 227 | 'event_espresso'  | 
                                |
| 228 | ),  | 
                                |
| 229 | $datetime->event()->ID(),  | 
                                |
| 230 | $this->event->ID()  | 
                                |
| 231 | )  | 
                                |
| 232 | );  | 
                                |
| 233 | }  | 
                                |
| 234 | $this->datetimes[ $datetime->ID() ] = $datetime;  | 
                                |
| 235 | }  | 
                                |
| 236 | ||