| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | 1 | public function edit(EditCommand $command): EditResult |
|
| 26 | { |
||
| 27 | 1 | $soapCaller = $this->settings()->createCallerForService( |
|
| 28 | 1 | Services::registration(), |
|
| 29 | 1 | 'reseller_username', |
|
| 30 | 1 | 'reseller_password' |
|
| 31 | ); |
||
| 32 | 1 | $rawResponse = $soapCaller->call('edit', array_filter([ |
|
| 33 | 1 | 'taxpayer_id' => $command->rfc(), |
|
| 34 | 1 | 'status' => $command->status()->value(), |
|
| 35 | 1 | 'cer' => $command->certificate(), |
|
| 36 | 1 | 'key' => $command->privateKey(), |
|
| 37 | 1 | 'passphrase' => $command->passPhrase(), |
|
| 38 | ])); |
||
| 39 | 1 | return new EditResult($rawResponse); |
|
| 40 | } |
||
| 42 |