GeneralSettings.php
1 year ago
GoogleMeetSettings.php
1 year ago
LessonSpaceSettings.php
1 year ago
MicrosoftTeamsSettings.php
1 year ago
PaymentLinksSettings.php
1 year ago
PaymentMollieSettings.php
1 year ago
PaymentPayPalSettings.php
1 year ago
PaymentSettings.php
1 year ago
PaymentSquareSettings.php
1 year ago
PaymentStripeSettings.php
1 year ago
PaymentWooCommerceSettings.php
1 year ago
Settings.php
1 year ago
ZoomSettings.php
1 year ago
Settings.php
142 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * @copyright © TMS-Plugins. 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 | /** |
| 36 | * @return GeneralSettings |
| 37 | */ |
| 38 | public function getGeneralSettings() |
| 39 | { |
| 40 | return $this->generalSettings; |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * @param GeneralSettings $generalSettings |
| 45 | */ |
| 46 | public function setGeneralSettings($generalSettings) |
| 47 | { |
| 48 | $this->generalSettings = $generalSettings; |
| 49 | } |
| 50 | |
| 51 | /** |
| 52 | * @return PaymentSettings |
| 53 | */ |
| 54 | public function getPaymentSettings() |
| 55 | { |
| 56 | return $this->paymentSettings; |
| 57 | } |
| 58 | |
| 59 | /** |
| 60 | * @param PaymentSettings $paymentSettings |
| 61 | */ |
| 62 | public function setPaymentSettings($paymentSettings) |
| 63 | { |
| 64 | $this->paymentSettings = $paymentSettings; |
| 65 | } |
| 66 | |
| 67 | /** |
| 68 | * @return ZoomSettings |
| 69 | */ |
| 70 | public function getZoomSettings() |
| 71 | { |
| 72 | return $this->zoomSettings; |
| 73 | } |
| 74 | |
| 75 | /** |
| 76 | * @param ZoomSettings $zoomSettings |
| 77 | */ |
| 78 | public function setZoomSettings($zoomSettings) |
| 79 | { |
| 80 | $this->zoomSettings = $zoomSettings; |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * @return LessonSpaceSettings |
| 85 | */ |
| 86 | public function getLessonSpaceSettings() |
| 87 | { |
| 88 | return $this->lessonSpaceSettings; |
| 89 | } |
| 90 | |
| 91 | /** |
| 92 | * @param LessonSpaceSettings $lessonSpaceSettings |
| 93 | */ |
| 94 | public function setLessonSpaceSettings($lessonSpaceSettings) |
| 95 | { |
| 96 | $this->lessonSpaceSettings = $lessonSpaceSettings; |
| 97 | } |
| 98 | |
| 99 | /** |
| 100 | * @return GoogleMeetSettings |
| 101 | */ |
| 102 | public function getGoogleMeetSettings() |
| 103 | { |
| 104 | return $this->googleMeetSettings; |
| 105 | } |
| 106 | |
| 107 | /** |
| 108 | * @param GoogleMeetSettings $googleMeetSettings |
| 109 | */ |
| 110 | public function setGoogleMeetSettings($googleMeetSettings) |
| 111 | { |
| 112 | $this->googleMeetSettings = $googleMeetSettings; |
| 113 | } |
| 114 | |
| 115 | /** |
| 116 | * @return MicrosoftTeamsSettings |
| 117 | */ |
| 118 | public function getMicrosoftTeamsSettings() |
| 119 | { |
| 120 | return $this->microsoftTeamsSettings; |
| 121 | } |
| 122 | |
| 123 | /** |
| 124 | * @param MicrosoftTeamsSettings $microsoftTeamsSettings |
| 125 | */ |
| 126 | public function setMicrosoftTeamsSettings($microsoftTeamsSettings) |
| 127 | { |
| 128 | $this->microsoftTeamsSettings = $microsoftTeamsSettings; |
| 129 | } |
| 130 | |
| 131 | /** |
| 132 | * @return array |
| 133 | */ |
| 134 | public function toArray() |
| 135 | { |
| 136 | return [ |
| 137 | 'general' => $this->getGeneralSettings() ? $this->getGeneralSettings()->toArray() : null, |
| 138 | 'payments' => $this->getPaymentSettings() ? $this->getPaymentSettings()->toArray() : null, |
| 139 | ]; |
| 140 | } |
| 141 | } |
| 142 |