Total Complexity | 11 |
Total Lines | 55 |
Duplicated Lines | 0 % |
Coverage | 39.13% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class StampingResult extends AbstractResult |
||
11 | { |
||
12 | /** @var StampingAlerts */ |
||
13 | private $alerts; |
||
14 | |||
15 | 5 | public function __construct(string $container, stdClass $data) |
|
16 | { |
||
17 | 5 | parent::__construct($data, $container); |
|
18 | 5 | $alerts = $this->findInDescendent($data, $container, 'Incidencias', 'Incidencia'); |
|
19 | 5 | $this->alerts = new StampingAlerts(is_array($alerts) ? $alerts : []); |
|
20 | 5 | } |
|
21 | |||
22 | public function xml(): string |
||
23 | { |
||
24 | return $this->get('xml'); |
||
25 | } |
||
26 | |||
27 | public function uuid(): string |
||
28 | { |
||
29 | return $this->get('UUID'); |
||
30 | } |
||
31 | |||
32 | public function faultstring(): string |
||
35 | } |
||
36 | |||
37 | public function date(): string |
||
38 | { |
||
39 | return $this->get('Fecha'); |
||
40 | } |
||
41 | |||
42 | public function statusCode(): string |
||
43 | { |
||
44 | return $this->get('CodEstatus'); |
||
45 | } |
||
46 | |||
47 | public function seal(): string |
||
50 | } |
||
51 | |||
52 | public function certificateSat(): string |
||
55 | } |
||
56 | |||
57 | 4 | public function alerts(): StampingAlerts |
|
58 | { |
||
59 | 4 | return $this->alerts; |
|
60 | } |
||
61 | |||
62 | 1 | public function hasAlerts(): bool |
|
65 | } |
||
66 | } |
||
67 |