MailChimpWebHook::setUrl()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 4
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AlexCk\MailchimpBundle\Model\MailChimp;
6
7
class MailChimpWebHook
8
{
9
    /**
10
     * @var string
11
     */
12
    private $id;
13
14
    /**
15
     * @var string
16
     */
17
    private $url;
18
19
    /**
20
     * @var MailChimpWebHooksEvent
21
     */
22
    private $events;
23
24
    /**
25
     * @var MailChimpWebHooksSources
26
     */
27
    private $sources;
28
29
    public function getId(): string
30
    {
31
        return $this->id;
32
    }
33
34
    public function setId(string $id): MailChimpWebHook
35
    {
36
        $this->id = $id;
37
        return $this;
38
    }
39
40
    public function getUrl(): string
41
    {
42
        return $this->url;
43
    }
44
45
    public function setUrl(string $url): MailChimpWebHook
46
    {
47
        $this->url = $url;
48
        return $this;
49
    }
50
51
    public function getEvents(): MailChimpWebHooksEvent
52
    {
53
        return $this->events;
54
    }
55
56
    public function setEvents(MailChimpWebHooksEvent $events): MailChimpWebHook
57
    {
58
        $this->events = $events;
59
        return $this;
60
    }
61
62
    public function getSources(): MailChimpWebHooksSources
63
    {
64
        return $this->sources;
65
    }
66
67
    public function setSources(MailChimpWebHooksSources $sources): MailChimpWebHook
68
    {
69
        $this->sources = $sources;
70
        return $this;
71
    }
72
}
73