1 | <?php |
||
8 | final class DummyHttpClient implements HttpClient |
||
9 | { |
||
10 | const METHOD_GET = 'GET'; |
||
11 | |||
12 | /** @var array */ |
||
13 | private $endpoints = [ |
||
14 | self::METHOD_GET => [], |
||
15 | ]; |
||
16 | |||
17 | /** |
||
18 | * @param string $method |
||
19 | * @param string $url |
||
20 | * @param string $contentType |
||
21 | * @param string $body |
||
22 | */ |
||
23 | public function createEndpoint($method, $url, $contentType, $body) |
||
31 | |||
32 | public function get($url) |
||
36 | } |
||
37 |
It is generally a best practice as it is often more readable to use concatenation instead of interpolation for variables inside strings.