Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | 60 | public function __construct(ClientInterface $client, string $token, string $domain, string $suffix) |
|
26 | { |
||
27 | 60 | $this->client = $client; |
|
28 | 60 | $this->defaults = [ |
|
29 | 60 | 'allow_redirects' => false, |
|
30 | 60 | 'base_uri' => 'https://firebasedynamiclinks.googleapis.com', |
|
31 | 'headers' => [ |
||
32 | 'Content-Type' => 'application/json', |
||
33 | 'Accept' => 'application/json', |
||
34 | ], |
||
35 | 'query' => [ |
||
36 | 60 | 'key' => $token, |
|
37 | ], |
||
38 | 'json' => [ |
||
39 | 'dynamicLinkInfo' => [ |
||
40 | 60 | 'domainUriPrefix' => $domain, |
|
41 | ], |
||
42 | 'suffix' => [ |
||
43 | 60 | "option" => $suffix, |
|
44 | ], |
||
62 |