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