MailChimpWebhookRequest   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
c 1
b 0
f 0
dl 0
loc 32
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setType() 0 4 1
A getType() 0 3 1
A setData() 0 4 1
A getData() 0 3 1
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