MailChimpWebHooksEvent::isUnsubscribe()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AlexCk\MailchimpBundle\Model\MailChimp;
6
7
class MailChimpWebHooksEvent
8
{
9
    /**
10
     * @var bool
11
     */
12
    private $subscribe;
13
14
    /**
15
     * @var bool
16
     */
17
    private $unsubscribe;
18
19
    /**
20
     * @var bool
21
     */
22
    private $profile;
23
24
    public function isSubscribe(): bool
25
    {
26
        return $this->subscribe;
27
    }
28
29
    public function setSubscribe(bool $subscribe): MailChimpWebHooksEvent
30
    {
31
        $this->subscribe = $subscribe;
32
        return $this;
33
    }
34
35
    public function isUnsubscribe(): bool
36
    {
37
        return $this->unsubscribe;
38
    }
39
40
    public function setUnsubscribe(bool $unsubscribe): MailChimpWebHooksEvent
41
    {
42
        $this->unsubscribe = $unsubscribe;
43
        return $this;
44
    }
45
46
    public function isProfile(): bool
47
    {
48
        return $this->profile;
49
    }
50
51
    public function setProfile(bool $profile): MailChimpWebHooksEvent
52
    {
53
        $this->profile = $profile;
54
        return $this;
55
    }
56
}
57