ameliabooking
/
src
/
Domain
/
Repository
/
Booking
/
Appointment
/
AppointmentRepositoryInterface.php
AppointmentRepositoryInterface.php
5 years ago
CustomerBookingExtraRepositoryInterface.php
5 years ago
CustomerBookingRepositoryInterface.php
7 years ago
AppointmentRepositoryInterface.php
50 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @copyright © TMS-Plugins. All rights reserved. |
| 4 | * @licence See LICENCE.md for license details. |
| 5 | */ |
| 6 | |
| 7 | namespace AmeliaBooking\Domain\Repository\Booking\Appointment; |
| 8 | |
| 9 | use AmeliaBooking\Domain\Collection\Collection; |
| 10 | use AmeliaBooking\Domain\Repository\BaseRepositoryInterface; |
| 11 | use AmeliaBooking\Infrastructure\Common\Exceptions\QueryExecutionException; |
| 12 | |
| 13 | /** |
| 14 | * Interface AppointmentRepositoryInterface |
| 15 | * |
| 16 | * @package AmeliaBooking\Domain\Repository\Booking\Appointment |
| 17 | */ |
| 18 | interface AppointmentRepositoryInterface extends BaseRepositoryInterface |
| 19 | { |
| 20 | /** |
| 21 | * @param int $id |
| 22 | * @param int $status |
| 23 | * |
| 24 | * @return mixed |
| 25 | */ |
| 26 | public function updateStatusById($id, $status); |
| 27 | |
| 28 | /** |
| 29 | * @return array |
| 30 | */ |
| 31 | public function getCurrentAppointments(); |
| 32 | |
| 33 | /** |
| 34 | * @param Collection $collection |
| 35 | * @param array $providerIds |
| 36 | * @param string $startDateTime |
| 37 | * @param string $endDateTime |
| 38 | * @return void |
| 39 | * @throws QueryExecutionException |
| 40 | */ |
| 41 | public function getFutureAppointments($collection, $providerIds, $startDateTime, $endDateTime); |
| 42 | |
| 43 | /** |
| 44 | * @param array $criteria |
| 45 | * |
| 46 | * @return mixed |
| 47 | */ |
| 48 | public function getFiltered($criteria); |
| 49 | } |
| 50 |