1 | <?php |
||
17 | class PaperFormat extends PaperSize |
||
18 | { |
||
19 | /** |
||
20 | * Format. |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | private $format; |
||
25 | |||
26 | /** |
||
27 | * Orientation. |
||
28 | * |
||
29 | * @var string |
||
30 | */ |
||
31 | private $orientation; |
||
32 | |||
33 | /** |
||
34 | * Internal constructor. |
||
35 | * |
||
36 | * @param string $format |
||
37 | * @param string $orientation (default: 'portrait') |
||
38 | * @param int|JonnyW\PhantomJs\Page\Margin $margin (default: 0) |
||
39 | */ |
||
40 | public function __construct($format, $orientation = 'portrait', $margin = 0) |
||
46 | |||
47 | /** |
||
48 | * Format data for JSON serialization. |
||
49 | * |
||
50 | * @return array |
||
51 | */ |
||
52 | public function jsonSerialize() |
||
62 | } |
||
63 |