Total Complexity | 7 |
Total Lines | 57 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class MailChimpResponse |
||
11 | { |
||
12 | /** |
||
13 | * @var ArrayCollection<ListItem> |
||
14 | */ |
||
15 | private $lists; |
||
16 | |||
17 | /** |
||
18 | * @var ArrayCollection<MailChimpWebHook> |
||
19 | */ |
||
20 | private $webhooks; |
||
21 | |||
22 | /** |
||
23 | * MailChimpResponse constructor. |
||
24 | */ |
||
25 | public function __construct() |
||
26 | { |
||
27 | $this->lists = new ArrayCollection(); |
||
28 | $this->webhooks = new ArrayCollection(); |
||
29 | } |
||
30 | |||
31 | public function getLists(): Collection |
||
34 | } |
||
35 | |||
36 | public function addList(ListItem $list): MailChimpResponse |
||
37 | { |
||
38 | $this->getLists()->add($list); |
||
39 | |||
40 | return $this; |
||
41 | } |
||
42 | |||
43 | public function removeList(ListItem $list): MailChimpResponse |
||
44 | { |
||
45 | $this->getLists()->removeElement($list); |
||
46 | |||
47 | return $this; |
||
48 | } |
||
49 | |||
50 | public function getWebhooks(): Collection |
||
51 | { |
||
52 | return $this->webhooks; |
||
53 | } |
||
54 | |||
55 | public function addWebhook(MailChimpWebHook $webhook): MailChimpResponse |
||
56 | { |
||
57 | $this->webhooks->add($webhook); |
||
58 | |||
59 | return $this; |
||
60 | } |
||
61 | |||
62 | public function removeWebhook(MailChimpWebHook $webhook): MailChimpResponse |
||
67 | } |
||
68 | } |
||
69 |