WrapperTaskMonitoring::getMessage()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 2
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
1
<?php
2
3
namespace Spinen\Ncentral\Type;
4
5
class WrapperTaskMonitoring
6
{
7
8
    /**
9
     * @var string
10
     */
11
    private $message;
12
13
    /**
14
     * @var \Spinen\Ncentral\Type\TEITaskFailed
15
     */
16
    private $values;
17
18
    /**
19
     * @return string
20
     */
21
    public function getMessage()
22
    {
23
        return $this->message;
24
    }
25
26
    /**
27
     * @param string $message
28
     * @return WrapperTaskMonitoring
29
     */
30
    public function withMessage($message)
31
    {
32
        $new = clone $this;
33
        $new->message = $message;
34
35
        return $new;
36
    }
37
38
    /**
39
     * @return \Spinen\Ncentral\Type\TEITaskFailed
40
     */
41
    public function getValues()
42
    {
43
        return $this->values;
44
    }
45
46
    /**
47
     * @param \Spinen\Ncentral\Type\TEITaskFailed $values
48
     * @return WrapperTaskMonitoring
49
     */
50
    public function withValues($values)
51
    {
52
        $new = clone $this;
53
        $new->values = $values;
54
55
        return $new;
56
    }
57
58
59
}
60
61