Total Complexity | 3 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
9 | abstract class AbstractPhraseappResource implements ExecutorInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var PhraseappHttpClient |
||
13 | */ |
||
14 | private $client; |
||
15 | |||
16 | /** |
||
17 | * AbstractPhraseappResource constructor. |
||
18 | * @param PhraseappHttpClient $client |
||
19 | */ |
||
20 | 6 | public function __construct(PhraseappHttpClient $client) |
|
21 | { |
||
22 | 6 | $this->client = $client; |
|
23 | 6 | } |
|
24 | |||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | */ |
||
28 | 6 | public function execute(Request $request) |
|
31 | } |
||
32 | |||
33 | /** |
||
34 | * Returns a PS7 compliant request object. |
||
35 | * |
||
36 | * @param string $method |
||
37 | * @param string $uri |
||
38 | * |
||
39 | * @return Request |
||
40 | */ |
||
41 | 6 | protected function buildRequest(string $method, string $uri) |
|
44 | } |
||
45 | } |
||
46 |