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