| @@ 210-217 (lines=8) @@ | ||
| 207 | ], |
|
| 208 | 'bookingInfo.price' => [ |
|
| 209 | 'name' => 'prijs', |
|
| 210 | 'include' => function ($event) { |
|
| 211 | if (property_exists($event, 'bookingInfo') && is_array($event->bookingInfo)) { |
|
| 212 | $first = reset($event->bookingInfo); |
|
| 213 | if (is_object($first) && property_exists($first, 'price')) { |
|
| 214 | return $first->price; |
|
| 215 | } |
|
| 216 | } |
|
| 217 | }, |
|
| 218 | 'property' => 'bookingInfo' |
|
| 219 | ], |
|
| 220 | 'kansentarief' => [ |
|
| @@ 254-261 (lines=8) @@ | ||
| 251 | ], |
|
| 252 | 'bookingInfo.url' => [ |
|
| 253 | 'name' => 'ticket link', |
|
| 254 | 'include' => function ($event) { |
|
| 255 | if (property_exists($event, 'bookingInfo')) { |
|
| 256 | $first = reset($event->bookingInfo); |
|
| 257 | if (is_object($first) && property_exists($first, 'url')) { |
|
| 258 | return $first->url; |
|
| 259 | } |
|
| 260 | } |
|
| 261 | }, |
|
| 262 | 'property' => 'bookingInfo' |
|
| 263 | ], |
|
| 264 | 'description' => [ |
|