| @@ 75-84 (lines=10) @@ | ||
| 72 | ) { |
|
| 73 | // grab the related ticket object for this line_item |
|
| 74 | $this->ticket = $ticket_line_item->ticket(); |
|
| 75 | if ( ! $this->ticket instanceof \EE_Ticket) { |
|
| 76 | throw new InvalidEntityException( |
|
| 77 | is_object($this->ticket) ? get_class($this->ticket) : gettype($this->ticket), |
|
| 78 | 'EE_Ticket', |
|
| 79 | sprintf( |
|
| 80 | __("Line item %s did not contain a valid ticket", "event_espresso"), |
|
| 81 | $ticket_line_item->ID() |
|
| 82 | ) |
|
| 83 | ); |
|
| 84 | } |
|
| 85 | $this->transaction = $transaction; |
|
| 86 | $this->ticket_line_item = $ticket_line_item; |
|
| 87 | $this->reg_count = absint($reg_count); |
|
| @@ 140-152 (lines=13) @@ | ||
| 137 | 'FHEE__EventEspresso_core_services_shortcodes_ShortcodesManager__registerShortcodes__shortcode_collection', |
|
| 138 | $this->getShortcodes() |
|
| 139 | ); |
|
| 140 | if (! $this->shortcodes instanceof CollectionInterface) { |
|
| 141 | throw new InvalidEntityException( |
|
| 142 | $this->shortcodes, |
|
| 143 | 'CollectionInterface', |
|
| 144 | sprintf( |
|
| 145 | esc_html__( |
|
| 146 | 'The "FHEE__EventEspresso_core_services_shortcodes_ShortcodesManager__registerShortcodes__shortcode_collection" filter must return a Collection of EspressoShortcode objects. "%1$s" was received instead.', |
|
| 147 | 'event_espresso' |
|
| 148 | ), |
|
| 149 | is_object($this->shortcodes) ? get_class($this->shortcodes) : gettype($this->shortcodes) |
|
| 150 | ) |
|
| 151 | ); |
|
| 152 | } |
|
| 153 | $this->legacy_shortcodes_manager->registerShortcodes(); |
|
| 154 | } catch (Exception $exception) { |
|
| 155 | new ExceptionStackTraceDisplay($exception); |
|