| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | 6 | public function obtainContracts(GetContractsCommand $command): GetContractsResult |
|
| 26 | { |
||
| 27 | // this empty string are for ommiting sending username and password |
||
| 28 | 6 | $soapCaller = $this->settings()->createCallerForService(Services::manifest(), '', ''); |
|
| 29 | 6 | $rawResponse = $soapCaller->call('get_contracts_snid', [ |
|
| 30 | 6 | 'snid' => $command->snid(), |
|
| 31 | 6 | 'taxpayer_id' => $command->rfc(), |
|
| 32 | 6 | 'name' => $command->name(), |
|
| 33 | 6 | 'address' => $command->address(), |
|
| 34 | 6 | 'email' => $command->email(), |
|
| 35 | 6 | ]); |
|
| 36 | 6 | return new GetContractsResult($rawResponse); |
|
| 37 | } |
||
| 39 |