| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 40 | 3 | public function obtainPage(ObtainCustomersCommand $command): ObtainCustomersResult |
|
| 41 | { |
||
| 42 | 3 | $soapCaller = $this->settings()->createCallerForService( |
|
| 43 | 3 | Services::registration(), |
|
| 44 | 3 | 'username', |
|
| 45 | 3 | 'password' |
|
| 46 | 3 | ); |
|
| 47 | 3 | $rawResponse = $soapCaller->call('customers', [ |
|
| 48 | 3 | 'page' => $command->page(), |
|
| 49 | 3 | ]); |
|
| 50 | 3 | return new ObtainCustomersResult($rawResponse); |
|
| 51 | } |
||
| 53 |