| Total Complexity | 2 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class TinyUrl implements ToPromise |
||
| 14 | { |
||
| 15 | protected $client; |
||
| 16 | protected $defaults; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Create a new TinyURL shortener. |
||
| 20 | * |
||
| 21 | * @param \GuzzleHttp\ClientInterface $client |
||
| 22 | * @return void |
||
| 23 | */ |
||
| 24 | public function __construct(ClientInterface $client) |
||
| 30 | ]; |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritDoc} |
||
| 35 | */ |
||
| 36 | public function toPromise(UriInterface $uri, array $options): PromiseInterface |
||
| 46 |