| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | final class URLRequest extends ChromeRequest implements GotenbergRequestInterface |
||
| 8 | { |
||
| 9 | private const REMOTE_URL = 'remoteURL'; |
||
| 10 | |||
| 11 | private const REMOTE_URL_BASE_HTTP_HEADER_KEY = 'Gotenberg-Remoteurl-'; |
||
| 12 | |||
| 13 | /** @var string */ |
||
| 14 | private $URL; |
||
| 15 | |||
| 16 | public function __construct(string $URL) |
||
| 17 | { |
||
| 18 | parent::__construct(); |
||
| 19 | $this->URL = $URL; |
||
| 20 | } |
||
| 21 | |||
| 22 | public function getPostURL(): string |
||
| 23 | { |
||
| 24 | return '/convert/url'; |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return array<string,mixed> |
||
| 29 | */ |
||
| 30 | public function getFormValues(): array |
||
| 36 | } |
||
| 37 | |||
| 38 | public function addRemoteURLHTTPHeader(string $key, string $value): void |
||
| 42 | } |
||
| 43 | } |
||
| 44 |