PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 1.2.11
Booking for Appointments and Events Calendar – Amelia v1.2.11
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 / Domain / Services / Resource / BasicResourceService.php
ameliabooking / src / Domain / Services / Resource Last commit date
AbstractResourceService.php 2 years ago BasicResourceService.php 2 years ago
BasicResourceService.php
85 lines
1 <?php
2
3 namespace AmeliaBooking\Domain\Services\Resource;
4
5 use AmeliaBooking\Domain\Collection\Collection;
6 use AmeliaBooking\Domain\Common\Exceptions\InvalidArgumentException;
7 use AmeliaBooking\Domain\Entity\Bookable\Service\Service;
8
9 /**
10 * Class BasicResourceService
11 *
12 * @package AmeliaBooking\Domain\Services\Resource
13 */
14 class BasicResourceService extends AbstractResourceService
15 {
16
17 /**
18 * set substitute resources instead of resources that are not shred between services/locations
19 *
20 * @param Collection $resources
21 * @param array $entitiesIds
22 *
23 * @return void
24 * @throws InvalidArgumentException
25 */
26 public function setNonSharedResources($resources, $entitiesIds)
27 {
28 }
29
30 /**
31 * get collection of resources for service
32 *
33 * @param Collection $resources
34 * @param int $serviceId
35 *
36 * @return Collection
37 * @throws InvalidArgumentException
38 */
39 public function getServiceResources($resources, $serviceId)
40 {
41 return new Collection();
42 }
43
44 /**
45 * get providers id values for resources
46 *
47 * @param Collection $resources
48 *
49 * @return array
50 */
51 public function getResourcesProvidersIds($resources)
52 {
53 return [];
54 }
55
56 /**
57 * set unavailable intervals (fake appointments) to providers in moments when resources are used up
58 * return intervals of resources with locations that are used up
59 *
60 * @param Collection $resources
61 * @param Collection $appointments
62 * @param Collection $allLocations
63 * @param Service $service
64 * @param Collection $providers
65 * @param int|null $locationId
66 * @param int|null $excludeAppointmentId
67 * @param int $personsCount
68 *
69 * @return array
70 * @throws InvalidArgumentException
71 */
72 public function manageResources(
73 $resources,
74 $appointments,
75 $allLocations,
76 $service,
77 $providers,
78 $locationId,
79 $excludeAppointmentId,
80 $personsCount
81 ) {
82 return [];
83 }
84 }
85