GeneralSettings.php
6 months ago
GoogleMeetSettings.php
6 months ago
LessonSpaceSettings.php
6 months ago
MicrosoftTeamsSettings.php
6 months ago
PaymentLinksSettings.php
6 months ago
PaymentMollieSettings.php
6 months ago
PaymentPayPalSettings.php
6 months ago
PaymentSettings.php
6 months ago
PaymentSquareSettings.php
6 months ago
PaymentStripeSettings.php
6 months ago
PaymentWooCommerceSettings.php
6 months ago
Settings.php
6 months ago
ZoomSettings.php
6 months ago
Settings.php
144 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\Domain\Entity\Settings; |
| 9 | |
| 10 | /** |
| 11 | * Class Settings |
| 12 | * |
| 13 | * @package AmeliaBooking\Domain\Entity\Settings |
| 14 | */ |
| 15 | class Settings |
| 16 | { |
| 17 | /** @var GeneralSettings */ |
| 18 | private $generalSettings; |
| 19 | |
| 20 | /** @var PaymentSettings */ |
| 21 | private $paymentSettings; |
| 22 | |
| 23 | /** @var ZoomSettings */ |
| 24 | private $zoomSettings; |
| 25 | |
| 26 | /** @var LessonSpaceSettings */ |
| 27 | private $lessonSpaceSettings; |
| 28 | |
| 29 | /** @var GoogleMeetSettings */ |
| 30 | private $googleMeetSettings; |
| 31 | |
| 32 | /** @var MicrosoftTeamsSettings */ |
| 33 | private $microsoftTeamsSettings; |
| 34 | |
| 35 | private $featuresIntegrationsSettings; |
| 36 | |
| 37 | /** |
| 38 | * @return GeneralSettings |
| 39 | */ |
| 40 | public function getGeneralSettings() |
| 41 | { |
| 42 | return $this->generalSettings; |
| 43 | } |
| 44 | |
| 45 | /** |
| 46 | * @param GeneralSettings $generalSettings |
| 47 | */ |
| 48 | public function setGeneralSettings($generalSettings) |
| 49 | { |
| 50 | $this->generalSettings = $generalSettings; |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * @return PaymentSettings |
| 55 | */ |
| 56 | public function getPaymentSettings() |
| 57 | { |
| 58 | return $this->paymentSettings; |
| 59 | } |
| 60 | |
| 61 | /** |
| 62 | * @param PaymentSettings $paymentSettings |
| 63 | */ |
| 64 | public function setPaymentSettings($paymentSettings) |
| 65 | { |
| 66 | $this->paymentSettings = $paymentSettings; |
| 67 | } |
| 68 | |
| 69 | /** |
| 70 | * @return ZoomSettings |
| 71 | */ |
| 72 | public function getZoomSettings() |
| 73 | { |
| 74 | return $this->zoomSettings; |
| 75 | } |
| 76 | |
| 77 | /** |
| 78 | * @param ZoomSettings $zoomSettings |
| 79 | */ |
| 80 | public function setZoomSettings($zoomSettings) |
| 81 | { |
| 82 | $this->zoomSettings = $zoomSettings; |
| 83 | } |
| 84 | |
| 85 | /** |
| 86 | * @return LessonSpaceSettings |
| 87 | */ |
| 88 | public function getLessonSpaceSettings() |
| 89 | { |
| 90 | return $this->lessonSpaceSettings; |
| 91 | } |
| 92 | |
| 93 | /** |
| 94 | * @param LessonSpaceSettings $lessonSpaceSettings |
| 95 | */ |
| 96 | public function setLessonSpaceSettings($lessonSpaceSettings) |
| 97 | { |
| 98 | $this->lessonSpaceSettings = $lessonSpaceSettings; |
| 99 | } |
| 100 | |
| 101 | /** |
| 102 | * @return GoogleMeetSettings |
| 103 | */ |
| 104 | public function getGoogleMeetSettings() |
| 105 | { |
| 106 | return $this->googleMeetSettings; |
| 107 | } |
| 108 | |
| 109 | /** |
| 110 | * @param GoogleMeetSettings $googleMeetSettings |
| 111 | */ |
| 112 | public function setGoogleMeetSettings($googleMeetSettings) |
| 113 | { |
| 114 | $this->googleMeetSettings = $googleMeetSettings; |
| 115 | } |
| 116 | |
| 117 | /** |
| 118 | * @return MicrosoftTeamsSettings |
| 119 | */ |
| 120 | public function getMicrosoftTeamsSettings() |
| 121 | { |
| 122 | return $this->microsoftTeamsSettings; |
| 123 | } |
| 124 | |
| 125 | /** |
| 126 | * @param MicrosoftTeamsSettings $microsoftTeamsSettings |
| 127 | */ |
| 128 | public function setMicrosoftTeamsSettings($microsoftTeamsSettings) |
| 129 | { |
| 130 | $this->microsoftTeamsSettings = $microsoftTeamsSettings; |
| 131 | } |
| 132 | |
| 133 | /** |
| 134 | * @return array |
| 135 | */ |
| 136 | public function toArray() |
| 137 | { |
| 138 | return [ |
| 139 | 'general' => $this->getGeneralSettings() ? $this->getGeneralSettings()->toArray() : null, |
| 140 | 'payments' => $this->getPaymentSettings() ? $this->getPaymentSettings()->toArray() : null, |
| 141 | ]; |
| 142 | } |
| 143 | } |
| 144 |