1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace TheCodingMachine\Gotenberg; |
4
|
|
|
|
5
|
|
|
abstract class Request |
6
|
|
|
{ |
7
|
|
|
public const A3 = [11.7, 16.5]; |
8
|
|
|
public const A4 = [8.27, 11.7]; |
9
|
|
|
public const A5 = [5.8, 8.2]; |
10
|
|
|
public const A6 = [4.1, 5.8]; |
11
|
|
|
public const LETTER = [8.5, 11]; |
12
|
|
|
public const LEGAL = [8.5, 14]; |
13
|
|
|
public const TABLOID = [11, 17]; |
14
|
|
|
|
15
|
|
|
public const NO_MARGINS = [0, 0, 0, 0]; |
16
|
|
|
public const NORMAL_MARGINS = [1, 1, 1, 1]; |
17
|
|
|
public const LARGE_MARGINS = [2, 2, 2, 2]; |
18
|
|
|
|
19
|
|
|
protected const WEBHOOK_URL = 'webhookURL'; |
20
|
|
|
protected const PAPER_WIDTH = 'paperWidth'; |
21
|
|
|
protected const PAPER_HEIGHT = 'paperHeight'; |
22
|
|
|
protected const MARGIN_TOP = 'marginTop'; |
23
|
|
|
protected const MARGIN_BOTTOM = 'marginBottom'; |
24
|
|
|
protected const MARGIN_LEFT = 'marginLeft'; |
25
|
|
|
protected const MARGIN_RIGHT = 'marginRight'; |
26
|
|
|
protected const LANDSCAPE = 'landscape'; |
27
|
|
|
|
28
|
|
|
/** @var string|null */ |
29
|
|
|
protected $webhookURL; |
30
|
|
|
|
31
|
|
|
/** |
32
|
|
|
* @param string|null $webhookURL |
33
|
|
|
*/ |
34
|
|
|
public function setWebhookURL(?string $webhookURL): void |
35
|
|
|
{ |
36
|
|
|
$this->webhookURL = $webhookURL; |
37
|
|
|
} |
38
|
|
|
} |
39
|
|
|
|