Fault::getNode()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace GoetasWebservices\SoapServices\SoapClient\Envelope\SoapEnvelope12\Parts;
4
5
/**
6
 * Class representing DoSomethingInput
7
 */
8
class Fault
9
{
10
    /**
11
     * @var FaultCode
12
     */
13
    private $code;
14
    /**
15
     * @var string[]
16
     */
17
    private $reason = [];
18
    /**
19
     * @var string
20
     */
21
    private $detail;
22
    /**
23
     * @var string
24
     */
25
    private $role;
26
    /**
27
     * @var string
28
     */
29
    private $node;
30
31
    /**
32
     * @return string
33
     */
34 1
    public function getDetail()
35
    {
36 1
        return $this->detail;
37
    }
38
39
    /**
40
     * @param string $detail
41
     */
42 1
    public function setDetail($detail)
43
    {
44 1
        $this->detail = $detail;
45 1
    }
46
47
    /**
48
     * @return string
49
     */
50 1
    public function getRole()
51
    {
52 1
        return $this->role;
53
    }
54
55
    /**
56
     * @param string $role
57
     * @return Fault
58
     */
59 1
    public function setRole($role)
60
    {
61 1
        $this->role = $role;
62 1
    }
63
64
    /**
65
     * @return string
66
     */
67 1
    public function getNode()
68
    {
69 1
        return $this->node;
70
    }
71
72
    /**
73
     * @param string $node
74
     */
75 1
    public function setNode($node)
76
    {
77 1
        $this->node = $node;
78 1
    }
79
80
    /**
81
     * @return string
82
     */
83 1
    public function getCode()
84
    {
85 1
        return $this->code;
86
    }
87
88
    /**
89
     * @param FaultCode $code
90
     */
91 2
    public function setCode($code)
92
    {
93 2
        $this->code = $code;
94 2
    }
95
96
    /**
97
     * @return string[]
98
     */
99 1
    public function getReason()
100
    {
101 1
        return $this->reason;
102
    }
103
104
    /**
105
     * @param string[] $reason
106
     */
107
    public function setReason(array $reason)
108
    {
109
        $this->reason = $reason;
110
    }
111
112
}
113
114