| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class BBSException extends Exception |
||
| 17 | { |
||
| 18 | private $result = []; |
||
| 19 | |||
| 20 | public function __construct(\SimpleXMLElement $xml) |
||
| 21 | { |
||
| 22 | foreach ($xml->Error->Result->children() as $tag) { |
||
| 23 | $this->result[lcfirst($tag->getName())] = (string) $tag; |
||
| 24 | } |
||
| 25 | |||
| 26 | parent::__construct($xml); |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return array |
||
| 31 | */ |
||
| 32 | public function getResult(): array |
||
| 35 | } |
||
| 36 | } |
||
| 37 |