1 | <?php |
||
9 | final class GuzzleHttpClient implements HttpClient |
||
10 | { |
||
11 | /** @var string */ |
||
12 | private $dbPath; |
||
13 | |||
14 | public function __construct() |
||
20 | |||
21 | /** |
||
22 | * @param string $method |
||
23 | * @param string $url |
||
24 | * @param string $contentType |
||
25 | * @param string $body |
||
26 | */ |
||
27 | public function createEndpoint($method, $url, $contentType, $body) |
||
38 | |||
39 | private function writeEndpoints($endpoints) |
||
51 | |||
52 | public function get($url) |
||
64 | } |
||
65 |
It is generally a best practice as it is often more readable to use concatenation instead of interpolation for variables inside strings.