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