| Total Complexity | 4 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | final class CurlTransport implements TransportInterface |
||
| 12 | { |
||
| 13 | private const DEFAULT_CONNECTION_TIMEOUT = 30; |
||
| 14 | |||
| 15 | private int $connectionTimeout; |
||
| 16 | |||
| 17 | public function __construct(int $connectionTimeout = self::DEFAULT_CONNECTION_TIMEOUT) |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @throws TransportRequestException |
||
| 24 | */ |
||
| 25 | public function get(string $url): TransportResponseInterface |
||
| 50 |