PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / trunk
Booking for Appointments and Events Calendar – Amelia vtrunk
2.4.4 2.4.3 2.4.2 2.4.1 2.4 trunk 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 1.2.22 1.2.23 1.2.24 1.2.25 1.2.26 1.2.27 1.2.28 1.2.29 1.2.3 1.2.30 1.2.31 1.2.32 1.2.33 1.2.34 1.2.35 1.2.36 1.2.37 1.2.38 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.3
ameliabooking / src / Application / Services / Placeholder / PlaceholderServiceInterface.php
ameliabooking / src / Application / Services / Placeholder Last commit date
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