Passed
Pull Request — develop (#4)
by Stephen
05:10 queued 01:53
created

TEITaskFailed::getTaskID()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Spinen\Ncentral\Type;
4
5
class TEITaskFailed
6
{
7
8
    /**
9
     * @var string
10
     */
11
    private $serviceDescription;
12
13
    /**
14
     * @var string
15
     */
16
    private $serviceState;
17
18
    /**
19
     * @var string
20
     */
21
    private $serviceStatus;
22
23
    /**
24
     * @var int
25
     */
26
    private $taskID;
27
28
    /**
29
     * @return string
30
     */
31
    public function getServiceDescription()
32
    {
33
        return $this->serviceDescription;
34
    }
35
36
    /**
37
     * @param string $serviceDescription
38
     * @return TEITaskFailed
39
     */
40
    public function withServiceDescription($serviceDescription)
41
    {
42
        $new = clone $this;
43
        $new->serviceDescription = $serviceDescription;
44
45
        return $new;
46
    }
47
48
    /**
49
     * @return string
50
     */
51
    public function getServiceState()
52
    {
53
        return $this->serviceState;
54
    }
55
56
    /**
57
     * @param string $serviceState
58
     * @return TEITaskFailed
59
     */
60
    public function withServiceState($serviceState)
61
    {
62
        $new = clone $this;
63
        $new->serviceState = $serviceState;
64
65
        return $new;
66
    }
67
68
    /**
69
     * @return string
70
     */
71
    public function getServiceStatus()
72
    {
73
        return $this->serviceStatus;
74
    }
75
76
    /**
77
     * @param string $serviceStatus
78
     * @return TEITaskFailed
79
     */
80
    public function withServiceStatus($serviceStatus)
81
    {
82
        $new = clone $this;
83
        $new->serviceStatus = $serviceStatus;
84
85
        return $new;
86
    }
87
88
    /**
89
     * @return int
90
     */
91
    public function getTaskID()
92
    {
93
        return $this->taskID;
94
    }
95
96
    /**
97
     * @param int $taskID
98
     * @return TEITaskFailed
99
     */
100
    public function withTaskID($taskID)
101
    {
102
        $new = clone $this;
103
        $new->taskID = $taskID;
104
105
        return $new;
106
    }
107
108
109
}
110
111