Total Complexity | 2 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class FirebaseShortener extends RemoteShortener |
||
12 | { |
||
13 | protected $client; |
||
14 | protected $defaults; |
||
15 | |||
16 | /** |
||
17 | * Create a new Firebase shortener. |
||
18 | * |
||
19 | * @param \GuzzleHttp\ClientInterface $client |
||
20 | * @param string $token |
||
21 | * @param string $domain |
||
22 | * @param string $suffix |
||
23 | * @return void |
||
24 | */ |
||
25 | 60 | public function __construct(ClientInterface $client, string $token, string $domain, string $suffix) |
|
44 | ], |
||
45 | ], |
||
46 | ]; |
||
47 | 60 | } |
|
48 | |||
49 | /** |
||
50 | * {@inheritDoc} |
||
51 | */ |
||
52 | 60 | public function shortenAsync($url, array $options = []) |
|
62 |