Total Complexity | 6 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class CancelRequest extends RecoveryRequest |
||
10 | { |
||
11 | /** |
||
12 | * Cancel constructor. |
||
13 | * @param array $data |
||
14 | * @throws Exception |
||
15 | * @throws RecoveryException |
||
16 | */ |
||
17 | public function __construct(array $data = []) |
||
18 | { |
||
19 | $data['amountLeft'] = 0; |
||
20 | $data['amountToRecover'] = 0; |
||
21 | |||
22 | parent::__construct($data); |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @return bool |
||
27 | * @throws Exception |
||
28 | */ |
||
29 | public function validate(): bool |
||
48 | } |
||
49 | } |
||
50 |