| Total Complexity | 12 |
| Total Lines | 123 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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) |
||
| 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 |
||
| 125 | } |
||
| 126 | |||
| 127 | /** |
||
| 128 | * @param \SimpleXMLElement $rawDetail |
||
| 129 | */ |
||
| 130 | public function setRawDetail(\SimpleXMLElement $rawDetail): void |
||
| 133 | } |
||
| 134 | |||
| 135 | |||
| 136 | } |
||
| 137 | |||
| 138 |