| Total Complexity | 2 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class OuoIoShortener extends RemoteShortener |
||
| 11 | { |
||
| 12 | protected $client; |
||
| 13 | protected $defaults; |
||
| 14 | protected $token; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Create a new Ouo.io shortener. |
||
| 18 | * |
||
| 19 | * @param \GuzzleHttp\ClientInterface $client |
||
| 20 | * @param string $token |
||
| 21 | * @return void |
||
| 22 | */ |
||
| 23 | 42 | public function __construct(ClientInterface $client, string $token) |
|
| 24 | { |
||
| 25 | 42 | $this->client = $client; |
|
| 26 | 42 | $this->defaults = [ |
|
| 27 | 'allow_redirects' => false, |
||
| 28 | 'base_uri' => 'https://ouo.io', |
||
| 29 | ]; |
||
| 30 | 42 | $this->token = $token; |
|
| 31 | 42 | } |
|
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritDoc} |
||
| 35 | */ |
||
| 36 | 18 | public function shortenAsync($url, array $options = []) |
|
| 43 | 18 | }); |
|
| 44 | } |
||
| 46 |