AppointmentPlaceholderService.php
1 month ago
AppointmentsPlaceholderService.php
4 months ago
BasicPackagePlaceholderService.php
6 months ago
EventPlaceholderService.php
2 weeks ago
PlaceholderService.php
2 weeks ago
PlaceholderServiceInterface.php
6 months ago
PlaceholderServiceInterface.php
86 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * @copyright © Melograno Ventures. All rights reserved. |
| 5 | * @licence See LICENCE.md for license details. |
| 6 | */ |
| 7 | |
| 8 | namespace AmeliaBooking\Application\Services\Placeholder; |
| 9 | |
| 10 | use AmeliaBooking\Domain\Common\Exceptions\InvalidArgumentException; |
| 11 | use AmeliaBooking\Domain\Entity\User\AbstractUser; |
| 12 | use AmeliaBooking\Infrastructure\Common\Exceptions\NotFoundException; |
| 13 | use AmeliaBooking\Infrastructure\Common\Exceptions\QueryExecutionException; |
| 14 | use Exception; |
| 15 | use Interop\Container\Exception\ContainerException; |
| 16 | use Slim\Exception\ContainerValueNotFoundException; |
| 17 | |
| 18 | /** |
| 19 | * Interface PlaceholderServiceInterface |
| 20 | * |
| 21 | * @package AmeliaBooking\Application\Services\Placeholder |
| 22 | */ |
| 23 | interface PlaceholderServiceInterface |
| 24 | { |
| 25 | /** |
| 26 | * |
| 27 | * @return array |
| 28 | * |
| 29 | * @throws ContainerException |
| 30 | */ |
| 31 | public function getEntityPlaceholdersDummyData($type); |
| 32 | |
| 33 | /** @noinspection MoreThanThreeArgumentsInspection */ |
| 34 | /** |
| 35 | * @param array $data |
| 36 | * @param int $bookingKey |
| 37 | * @param string $type |
| 38 | * @param AbstractUser $customer |
| 39 | * @param array $allBookings |
| 40 | * @param bool $invoice |
| 41 | * @param string $notificationType |
| 42 | * |
| 43 | * @return array |
| 44 | * |
| 45 | * @throws InvalidArgumentException |
| 46 | * @throws ContainerValueNotFoundException |
| 47 | * @throws NotFoundException |
| 48 | * @throws QueryExecutionException |
| 49 | * @throws ContainerException |
| 50 | * @throws Exception |
| 51 | */ |
| 52 | public function getPlaceholdersData( |
| 53 | $data, |
| 54 | $bookingKey = null, |
| 55 | $type = null, |
| 56 | $customer = null, |
| 57 | $allBookings = null, |
| 58 | $invoice = false, |
| 59 | $notificationType = null |
| 60 | ); |
| 61 | |
| 62 | /** |
| 63 | * @param array $bookingArray |
| 64 | * @param array $entity |
| 65 | * @param boolean $invoice |
| 66 | * |
| 67 | * @return array |
| 68 | */ |
| 69 | public function getAmountData(&$bookingArray, $entity, $invoice = false); |
| 70 | |
| 71 | |
| 72 | /** |
| 73 | * @param array $reservationData |
| 74 | * |
| 75 | * @return array |
| 76 | * |
| 77 | * @throws InvalidArgumentException |
| 78 | * @throws ContainerValueNotFoundException |
| 79 | * @throws NotFoundException |
| 80 | * @throws QueryExecutionException |
| 81 | * @throws ContainerException |
| 82 | * @throws Exception |
| 83 | */ |
| 84 | public function getInvoicePlaceholdersData($reservationData); |
| 85 | } |
| 86 |