Refactor completeBooking method call and add method skeleton in order_bookings_o
- Updated `completeBooking` method call to directly use `$user->id` without `value()` extraction. - Added `completeBooking` method skeleton in `order_bookings_o` with placeholders for future implementation.
This commit is contained in:
@@ -166,4 +166,13 @@ class order_bookings_o extends db
|
||||
];
|
||||
}
|
||||
|
||||
public function completeBooking(int $user_id): void
|
||||
{
|
||||
// TODO: Create order
|
||||
// TODO: Add order items
|
||||
// TODO: Create wash certificate
|
||||
// TODO: Send wash certificate
|
||||
// TODO: Update booking with order ID
|
||||
}
|
||||
|
||||
}
|
||||
@@ -270,7 +270,7 @@ class orderBookingRoute
|
||||
/**
|
||||
* Complete the booking
|
||||
*/
|
||||
$object->completeBooking((int)$user->id->value());
|
||||
$object->completeBooking((int)$user->id);
|
||||
/**
|
||||
* Return the object
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user