| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | 1 | public function switch(SwitchCommand $command): SwitchResult |
|
| 26 | { |
||
| 27 | 1 | $soapCaller = $this->settings()->createCallerForService(Services::registration()); |
|
| 28 | 1 | $rawResponse = $soapCaller->call('switch', [ |
|
| 29 | 1 | 'taxpayer_id' => $command->rfc(), |
|
| 30 | 1 | 'type_user' => $command->customerType()->value(), |
|
| 31 | ]); |
||
| 32 | 1 | return new SwitchResult($rawResponse); |
|
| 33 | } |
||
| 35 |