| Total Complexity | 12 |
| Total Lines | 92 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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 |
||
| 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 |
||
| 99 | } |
||
| 100 | |||
| 101 | public function setRawDetail(\SimpleXMLElement $rawDetail): void |
||
| 104 | } |
||
| 105 | } |
||
| 106 |