1 | <?php |
||
10 | final class NotificationSettings implements iZettlePostable |
||
|
|||
11 | { |
||
12 | private $emailReceivers; |
||
13 | private $notifyBelowBalance; |
||
14 | private $interval; |
||
15 | |||
16 | public function new(array $emailReceivers, int $notifyBelowBalance, Interval $interval): self |
||
20 | |||
21 | public function create(array $emailReceivers, int $notifyBelowBalance, Interval $interval): self |
||
25 | |||
26 | public function getEmailReceivers(): array |
||
30 | |||
31 | public function getNotifyBelowBalance(): int |
||
35 | |||
36 | public function getInterval(): Interval |
||
40 | |||
41 | public function getPostData(): array |
||
49 | |||
50 | private function __construct(array $emailReceivers, int $notifyBelowBalance, Interval $interval) |
||
57 | |||
58 | private function validateEmailAddresses(): void |
||
65 | |||
66 | private function validateEmailAddress($emailReceiver): void |
||
72 | } |
||
73 |