Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public function createWorker() |
||
17 | { |
||
18 | return new $this->workerClass([ |
||
19 | 'method' => $this->method, |
||
20 | 'url' => $this->getFullUri(), |
||
21 | 'headers' => $this->headers, |
||
22 | 'content' => $this->body, |
||
23 | 'client' => $this->getHandler(), |
||
24 | 'options' => [ |
||
25 | 'protocolVersion' => $this->version, |
||
26 | ], |
||
27 | ]); |
||
28 | } |
||
29 | } |
||
30 |