Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | 1 | public function getSignedContracts(GetSignedContractsCommand $command): GetSignedContractsResult |
|
26 | { |
||
27 | // this empty string are for ommiting sending username and password |
||
28 | 1 | $soapCaller = $this->settings()->createCallerForService(Services::manifest(), '', ''); |
|
29 | 1 | $rawResponse = $soapCaller->call('get_documents', [ |
|
30 | 1 | 'snid' => $command->snid(), |
|
31 | 1 | 'taxpayer_id' => $command->rfc(), |
|
32 | 1 | 'type' => $command->format()->value(), |
|
33 | ]); |
||
34 | 1 | return new GetSignedContractsResult($rawResponse, $command->format()->isPdf()); |
|
35 | } |
||
37 |