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