Total Complexity | 4 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | abstract class AbstractServiceBuilder |
||
13 | { |
||
14 | /** @var null|ClientInterface */ |
||
15 | private $httpClient; |
||
16 | |||
17 | /** @var null|RequestFactoryInterface */ |
||
18 | private $requestFactory; |
||
19 | |||
20 | public function setHttpClient(ClientInterface $httpClient): self |
||
21 | { |
||
22 | $this->httpClient = $httpClient; |
||
23 | |||
24 | return $this; |
||
25 | } |
||
26 | |||
27 | public function setRequestFactory(RequestFactoryInterface $requestFactory): self |
||
32 | } |
||
33 | |||
34 | protected function getHttpClient(): ClientInterface |
||
37 | } |
||
38 | |||
39 | protected function getRequestFactory(): RequestFactoryInterface |
||
42 | } |
||
43 | } |
||
44 |