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