MailChimpWebhookRequest::setType()   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 MailChimpWebhookRequest
8
{
9
    /**
10
     * @var string
11
     */
12
    private $type;
13
14
    /**
15
     * @var MailChimpWebhookDataRequest
16
     */
17
    private $data;
18
19
    public function getType(): string
20
    {
21
        return $this->type;
22
    }
23
24
    public function setType(string $type): MailChimpWebhookRequest
25
    {
26
        $this->type = $type;
27
        return $this;
28
    }
29
30
    public function getData(): MailChimpWebhookDataRequest
31
    {
32
        return $this->data;
33
    }
34
35
    public function setData(MailChimpWebhookDataRequest $data): MailChimpWebhookRequest
36
    {
37
        $this->data = $data;
38
        return $this;
39
    }
40
}
41