Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | 3 | public function reportTotal(ReportTotalCommand $command): ReportTotalResult |
|
26 | { |
||
27 | 3 | $soapCaller = $this->settings()->createCallerForService(Services::utilities()); |
|
28 | 3 | $rawResponse = $soapCaller->call('report_total', [ |
|
29 | 3 | 'taxpayer_id' => $command->rfc(), |
|
30 | 3 | 'invoice_type' => $command->type(), |
|
31 | 3 | 'date_from' => $command->startString(), |
|
32 | 3 | 'date_to' => $command->endString(), |
|
33 | 3 | ]); |
|
34 | 3 | return new ReportTotalResult($rawResponse); |
|
35 | } |
||
37 |