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