| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 37.5% |
| Changes | 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 | 48 | public function __construct(ClientInterface $client) |
|
| 27 | 48 | } |
|
| 28 | |||
| 29 | /** |
||
| 30 | * {@inheritDoc} |
||
| 31 | */ |
||
| 32 | public function shortenAsync($url, array $options = []) |
||
| 42 |