Total Complexity | 3 |
Total Lines | 59 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
15 | class Browser |
||
16 | { |
||
17 | /** |
||
18 | * @var HttpClient |
||
19 | */ |
||
20 | private $client; |
||
21 | |||
22 | /** |
||
23 | * @var ErrorDetector |
||
24 | */ |
||
25 | private $detector; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | private $host; |
||
31 | |||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | private $prefix; |
||
36 | |||
37 | /** |
||
38 | * @var string |
||
39 | */ |
||
40 | private $app_client; |
||
41 | |||
42 | /** |
||
43 | * @param HttpClient $client |
||
44 | * @param ErrorDetector $detector |
||
45 | * @param string $host |
||
46 | * @param string $prefix |
||
47 | * @param string $app_client |
||
48 | */ |
||
49 | 2 | public function __construct(HttpClient $client, ErrorDetector $detector, $host, $prefix, $app_client) |
|
50 | { |
||
51 | 2 | $this->client = $client; |
|
52 | 2 | $this->detector = $detector; |
|
53 | 2 | $this->host = $host; |
|
54 | 2 | $this->prefix = $prefix; |
|
55 | 2 | $this->app_client = $app_client; |
|
56 | 2 | } |
|
57 | |||
58 | /** |
||
59 | * @param string $path |
||
60 | * @param array $options |
||
61 | * |
||
62 | * @return array |
||
63 | */ |
||
64 | 2 | public function get($path, array $options = []) |
|
74 | } |
||
75 | } |
||
76 |