| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function allowed(): array |
||
| 20 | { |
||
| 21 | return [ |
||
| 22 | 'instance_id' => 'int', // The instance id for the date, item and time. |
||
| 23 | // TODO: implement validation like "array of objects" |
||
| 24 | 'quantities' => 'array[Quantity]', // The quantities of item pricing categories for this basket booking. Pass an array of objects. |
||
| 25 | 'booking_time' => 'string', // The custom start time of the booking, can result in the creation of a time adjustment or an error if that time is unvavailable . |
||
| 26 | 'booking_end' => 'string', // The custom end time of the booking, can result in the creation of a time adjustment or an error if that time is unvavailable. |
||
| 27 | 'fee_exempt' => 'string', // True if this basket booking is fee exempt. |
||
| 28 | 'tax_exempt' => 'string', // True if this basket booking is tax exempt. |
||
| 29 | // TODO: implement validation like "array of objects" |
||
| 30 | 'extras' => 'array[Extra]', // The item extras for this basket booking. Pass an array of objects. |
||
| 31 | // TODO: implement validation like "array of objects" |
||
| 32 | 'questions' => 'array[Question]', // The item booking questions for this basket booking. Pass an array of objects. |
||
| 33 | ]; |
||
| 36 |