BatchResponse   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 64
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 17
c 1
b 0
f 0
dl 0
loc 64
rs 10
wmc 8

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getStatus() 0 3 1
A setTotalOperations() 0 4 1
A setFinishedOperations() 0 4 1
A setStatus() 0 4 1
A getFinishedOperations() 0 3 1
A getId() 0 3 1
A setId() 0 4 1
A getTotalOperations() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AlexCk\MailchimpBundle\Model\MailChimp;
6
7
class BatchResponse
8
{
9
    /**
10
     * @var string
11
     */
12
    private $id;
13
14
    /**
15
     * @var string
16
     */
17
    private $status;
18
19
    /**
20
     * @var int
21
     */
22
    private $totalOperations;
23
24
    /**
25
     * @var int
26
     */
27
    private $finishedOperations;
28
29
    public function getId(): string
30
    {
31
        return $this->id;
32
    }
33
34
    public function setId(string $id): BatchResponse
35
    {
36
        $this->id = $id;
37
        return $this;
38
    }
39
40
    public function getStatus(): string
41
    {
42
        return $this->status;
43
    }
44
45
    public function setStatus(string $status): BatchResponse
46
    {
47
        $this->status = $status;
48
        return $this;
49
    }
50
51
    public function getTotalOperations(): int
52
    {
53
        return $this->totalOperations;
54
    }
55
56
    public function setTotalOperations(int $totalOperations): BatchResponse
57
    {
58
        $this->totalOperations = $totalOperations;
59
        return $this;
60
    }
61
62
    public function getFinishedOperations(): int
63
    {
64
        return $this->finishedOperations;
65
    }
66
67
    public function setFinishedOperations(int $finishedOperations): BatchResponse
68
    {
69
        $this->finishedOperations = $finishedOperations;
70
        return $this;
71
    }
72
}
73