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