| Total Complexity | 2 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 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 | 40 | public function __construct(ClientInterface $client, string $token, string $domain) |
|
| 37 | ], |
||
| 38 | ]; |
||
| 39 | 40 | } |
|
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritDoc} |
||
| 43 | */ |
||
| 44 | 40 | public function shortenAsync($url, array $options = []) |
|
| 54 |