Total Complexity | 2 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Coverage | 66.67% |
Changes | 0 |
1 | <?php |
||
11 | class BitLyShortener extends RemoteShortener |
||
12 | { |
||
13 | protected $client; |
||
14 | protected $defaults; |
||
15 | |||
16 | /** |
||
17 | * Create a new Bit.ly shortener. |
||
18 | * |
||
19 | * @param \GuzzleHttp\ClientInterface $client |
||
20 | * @param string $token |
||
21 | * @param string $domain |
||
22 | * @return void |
||
23 | */ |
||
24 | 24 | public function __construct(ClientInterface $client, string $token, string $domain) |
|
37 | ], |
||
38 | ]; |
||
39 | 24 | } |
|
40 | |||
41 | /** |
||
42 | * {@inheritDoc} |
||
43 | */ |
||
44 | public function shortenAsync($url, array $options = []) |
||
54 |