GeneralSettings.php
5 years ago
GoogleMeetSettings.php
2 years ago
LessonSpaceSettings.php
4 years 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
2 years ago
ZoomSettings.php
6 years ago
Settings.php
122 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 | /** |
| 32 | * @return GeneralSettings |
| 33 | */ |
| 34 | public function getGeneralSettings() |
| 35 | { |
| 36 | return $this->generalSettings; |
| 37 | } |
| 38 | |
| 39 | /** |
| 40 | * @param GeneralSettings $generalSettings |
| 41 | */ |
| 42 | public function setGeneralSettings($generalSettings) |
| 43 | { |
| 44 | $this->generalSettings = $generalSettings; |
| 45 | } |
| 46 | |
| 47 | /** |
| 48 | * @return PaymentSettings |
| 49 | */ |
| 50 | public function getPaymentSettings() |
| 51 | { |
| 52 | return $this->paymentSettings; |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | * @param PaymentSettings $paymentSettings |
| 57 | */ |
| 58 | public function setPaymentSettings($paymentSettings) |
| 59 | { |
| 60 | $this->paymentSettings = $paymentSettings; |
| 61 | } |
| 62 | |
| 63 | /** |
| 64 | * @return ZoomSettings |
| 65 | */ |
| 66 | public function getZoomSettings() |
| 67 | { |
| 68 | return $this->zoomSettings; |
| 69 | } |
| 70 | |
| 71 | /** |
| 72 | * @param ZoomSettings $zoomSettings |
| 73 | */ |
| 74 | public function setZoomSettings($zoomSettings) |
| 75 | { |
| 76 | $this->zoomSettings = $zoomSettings; |
| 77 | } |
| 78 | |
| 79 | /** |
| 80 | * @return LessonSpaceSettings |
| 81 | */ |
| 82 | public function getLessonSpaceSettings() |
| 83 | { |
| 84 | return $this->lessonSpaceSettings; |
| 85 | } |
| 86 | |
| 87 | /** |
| 88 | * @param LessonSpaceSettings $lessonSpaceSettings |
| 89 | */ |
| 90 | public function setLessonSpaceSettings($lessonSpaceSettings) |
| 91 | { |
| 92 | $this->lessonSpaceSettings = $lessonSpaceSettings; |
| 93 | } |
| 94 | |
| 95 | /** |
| 96 | * @return GoogleMeetSettings |
| 97 | */ |
| 98 | public function getGoogleMeetSettings() |
| 99 | { |
| 100 | return $this->googleMeetSettings; |
| 101 | } |
| 102 | |
| 103 | /** |
| 104 | * @param GoogleMeetSettings $googleMeetSettings |
| 105 | */ |
| 106 | public function setGoogleMeetSettings($googleMeetSettings) |
| 107 | { |
| 108 | $this->googleMeetSettings = $googleMeetSettings; |
| 109 | } |
| 110 | |
| 111 | /** |
| 112 | * @return array |
| 113 | */ |
| 114 | public function toArray() |
| 115 | { |
| 116 | return [ |
| 117 | 'general' => $this->getGeneralSettings() ? $this->getGeneralSettings()->toArray() : null, |
| 118 | 'payments' => $this->getPaymentSettings() ? $this->getPaymentSettings()->toArray() : null, |
| 119 | ]; |
| 120 | } |
| 121 | } |
| 122 |