BatchResponse::getStatus()   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 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