Passed
Push — ref ( 45b89b )
by Asmir
02:50
created

Fault::getReason()   A

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
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace GoetasWebservices\SoapServices\Metadata\Envelope\SoapEnvelope12\Parts;
4
5
use \GoetasWebservices\SoapServices\Metadata\Envelope\Fault as BaseFault;
6
7
/**
8
 * Class representing DoSomethingInput
9
 */
10
class Fault extends BaseFault
11
{
12
    /**
13
     * @var FaultCode
14
     */
15
    private $code;
16
    /**
17
     * @var string[]
18
     */
19
    private $reason = [];
20
    /**
21
     * @var string
22
     */
23
    private $detail;
24
    /**
25
     * @var string
26
     */
27
    private $role;
28
    /**
29
     * @var string
30
     */
31
    private $node;
32
33
    /**
34
     * @return string
35
     */
36
    public function getDetail()
37
    {
38
        return $this->detail;
39
    }
40
41
    /**
42
     * @param string $detail
43
     */
44
    public function setDetail($detail)
45
    {
46
        $this->detail = $detail;
47
    }
48
49
    /**
50
     * @return string
51
     */
52
    public function getRole()
53
    {
54
        return $this->role;
55
    }
56
57
    /**
58
     * @param string $role
59
     * @return Fault
60
     */
61
    public function setRole($role)
62
    {
63
        $this->role = $role;
64
    }
65
66
    /**
67
     * @return string
68
     */
69
    public function getNode()
70
    {
71
        return $this->node;
72
    }
73
74
    /**
75
     * @param string $node
76
     */
77
    public function setNode($node)
78
    {
79
        $this->node = $node;
80
    }
81
82
    /**
83
     * @return string
84
     */
85
    public function getCode()
86
    {
87
        return $this->code;
88
    }
89
90
    /**
91
     * @param FaultCode $code
92
     */
93
    public function setCode($code)
94
    {
95
        $this->code = $code;
96
    }
97
98
    /**
99
     * @return string[]
100
     */
101
    public function getReason()
102
    {
103
        return $this->reason;
104
    }
105
106
    /**
107
     * @param string[] $reason
108
     */
109
    public function setReason(array $reason)
110
    {
111
        $this->reason = $reason;
112
    }
113
114
    /**
115
     * @var \SimpleXMLElement
116
     */
117
    private $rawDetail;
118
119
    /**
120
     * @return \SimpleXMLElement
121
     */
122
    public function getRawDetail(): ?\SimpleXMLElement
123
    {
124
        return $this->rawDetail;
125
    }
126
127
    /**
128
     * @param \SimpleXMLElement $rawDetail
129
     */
130
    public function setRawDetail(\SimpleXMLElement $rawDetail): void
131
    {
132
        $this->rawDetail = $rawDetail;
133
    }
134
135
136
}
137
138