Total Complexity | 7 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class CancelSignatureResult extends AbstractResult |
||
11 | { |
||
12 | /** @var CancelledDocuments */ |
||
13 | private $documents; |
||
14 | |||
15 | 2 | public function __construct(stdClass $data) |
|
16 | { |
||
17 | 2 | parent::__construct($data, 'cancel_signatureResult'); |
|
18 | 2 | $documents = $this->findInDescendent($data, 'cancel_signatureResult', 'Folios', 'Folio'); |
|
19 | 2 | $this->documents = new CancelledDocuments(is_array($documents) ? $documents : []); |
|
20 | 2 | } |
|
21 | |||
22 | 2 | public function documents(): CancelledDocuments |
|
23 | { |
||
24 | 2 | return $this->documents; |
|
25 | } |
||
26 | |||
27 | 2 | public function voucher(): string |
|
28 | { |
||
29 | 2 | return $this->get('Acuse'); |
|
30 | } |
||
31 | |||
32 | 2 | public function date(): string |
|
35 | } |
||
36 | |||
37 | 2 | public function rfc(): string |
|
40 | } |
||
41 | |||
42 | 2 | public function statusCode(): string |
|
45 | } |
||
46 | } |
||
47 |