Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class TinyUrlShortener extends RemoteShortener |
||
11 | { |
||
12 | protected $client; |
||
13 | protected const defaults = [ |
||
14 | 'allow_redirects' => false, |
||
15 | 'base_uri' => 'https://tinyurl.com', |
||
16 | ]; |
||
17 | |||
18 | /** |
||
19 | * Create a new TinyURL shortener. |
||
20 | * |
||
21 | * @param \GuzzleHttp\ClientInterface $client |
||
22 | * @return void |
||
23 | */ |
||
24 | 40 | public function __construct(ClientInterface $client) |
|
27 | 40 | } |
|
28 | |||
29 | /** |
||
30 | * {@inheritDoc} |
||
31 | */ |
||
32 | 40 | public function shortenAsync($url, array $options = []) |
|
42 |