ApplicationService.php
1 year ago
DataModifier.php
2 years ago
DomainService.php
2 years ago
EventListener.php
1 year ago
InfrastructureService.php
2 years ago
Licence.php
1 year ago
ApplicationService.php
153 lines
| 1 | <?php |
| 2 | |
| 3 | namespace AmeliaBooking\Infrastructure\Licence\Lite; |
| 4 | |
| 5 | use AmeliaBooking\Application\Services as ApplicationServices; |
| 6 | use AmeliaBooking\Infrastructure\Common\Container; |
| 7 | |
| 8 | /** |
| 9 | * Class ApplicationService |
| 10 | * |
| 11 | * @package AmeliaBooking\Infrastructure\Licence\Lite |
| 12 | */ |
| 13 | class ApplicationService |
| 14 | { |
| 15 | /** |
| 16 | * @param Container $c |
| 17 | * |
| 18 | * @return ApplicationServices\User\UserApplicationService |
| 19 | */ |
| 20 | public static function getApiService($c) |
| 21 | { |
| 22 | return new ApplicationServices\User\UserApplicationService($c); |
| 23 | } |
| 24 | |
| 25 | /** |
| 26 | * @param Container $c |
| 27 | * |
| 28 | * @return ApplicationServices\Deposit\AbstractDepositApplicationService |
| 29 | */ |
| 30 | public static function getDepositService($c) |
| 31 | { |
| 32 | return new ApplicationServices\Deposit\StarterDepositApplicationService($c); |
| 33 | } |
| 34 | |
| 35 | /** |
| 36 | * @param Container $c |
| 37 | * |
| 38 | * @return ApplicationServices\Tax\AbstractTaxApplicationService |
| 39 | */ |
| 40 | public static function getTaxService($c) |
| 41 | { |
| 42 | return new ApplicationServices\Tax\StarterTaxApplicationService($c); |
| 43 | } |
| 44 | |
| 45 | /** |
| 46 | * @param Container $c |
| 47 | * |
| 48 | * @return ApplicationServices\Coupon\AbstractCouponApplicationService |
| 49 | */ |
| 50 | public static function getCouponService($c) |
| 51 | { |
| 52 | return new ApplicationServices\Coupon\LiteCouponApplicationService($c); |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | * @param Container $c |
| 57 | * |
| 58 | * @return ApplicationServices\Extra\AbstractExtraApplicationService |
| 59 | */ |
| 60 | public static function getExtraService($c) |
| 61 | { |
| 62 | return new ApplicationServices\Extra\LiteExtraApplicationService($c); |
| 63 | } |
| 64 | |
| 65 | /** |
| 66 | * @param Container $c |
| 67 | * |
| 68 | * @return ApplicationServices\Location\AbstractLocationApplicationService |
| 69 | */ |
| 70 | public static function getLocationService($c) |
| 71 | { |
| 72 | return new ApplicationServices\Location\BasicLocationApplicationService($c); |
| 73 | } |
| 74 | |
| 75 | /** |
| 76 | * @param Container $c |
| 77 | * |
| 78 | * @return ApplicationServices\CustomField\AbstractCustomFieldApplicationService |
| 79 | */ |
| 80 | public static function getCustomFieldService($c) |
| 81 | { |
| 82 | return new ApplicationServices\CustomField\StarterCustomFieldApplicationService($c); |
| 83 | } |
| 84 | |
| 85 | /** |
| 86 | * @param Container $c |
| 87 | * |
| 88 | * @return ApplicationServices\WebHook\AbstractWebHookApplicationService |
| 89 | */ |
| 90 | public static function getWebHookService($c) |
| 91 | { |
| 92 | return new ApplicationServices\WebHook\StarterWebHookApplicationService($c); |
| 93 | } |
| 94 | |
| 95 | /** |
| 96 | * @param Container $c |
| 97 | * |
| 98 | * @return ApplicationServices\Zoom\AbstractZoomApplicationService |
| 99 | */ |
| 100 | public static function getZoomService($c) |
| 101 | { |
| 102 | return new ApplicationServices\Zoom\StarterZoomApplicationService($c); |
| 103 | } |
| 104 | |
| 105 | /** |
| 106 | * @return ApplicationServices\Location\AbstractCurrentLocation |
| 107 | */ |
| 108 | public static function getCurrentLocationService() |
| 109 | { |
| 110 | return new ApplicationServices\Location\LiteCurrentLocation(); |
| 111 | } |
| 112 | |
| 113 | /** |
| 114 | * @param Container $c |
| 115 | * |
| 116 | * @return ApplicationServices\Bookable\AbstractPackageApplicationService |
| 117 | */ |
| 118 | public static function getPackageService($c) |
| 119 | { |
| 120 | return new ApplicationServices\Bookable\BasicPackageApplicationService($c); |
| 121 | } |
| 122 | |
| 123 | /** |
| 124 | * @param Container $c |
| 125 | * |
| 126 | * @return ApplicationServices\Resource\AbstractResourceApplicationService |
| 127 | */ |
| 128 | public static function getResourceService($c) |
| 129 | { |
| 130 | return new ApplicationServices\Resource\BasicResourceApplicationService($c); |
| 131 | } |
| 132 | |
| 133 | /** |
| 134 | * @param Container $c |
| 135 | * |
| 136 | * @return ApplicationServices\Notification\AbstractWhatsAppNotificationService |
| 137 | */ |
| 138 | public static function getWhatsAppNotificationService($c) |
| 139 | { |
| 140 | return new ApplicationServices\Notification\BasicWhatsAppNotificationService($c, 'whatsapp'); |
| 141 | } |
| 142 | |
| 143 | /** |
| 144 | * @param Container $c |
| 145 | * |
| 146 | * @return ApplicationServices\Invoice\AbstractInvoiceApplicationService |
| 147 | */ |
| 148 | public static function getInvoiceService($c) |
| 149 | { |
| 150 | return new ApplicationServices\Invoice\StarterInvoiceApplicationService($c); |
| 151 | } |
| 152 | } |
| 153 |