1 | <?php |
||
17 | class PaperSize implements \JsonSerializable |
||
18 | { |
||
19 | /** |
||
20 | * Width. |
||
21 | * |
||
22 | * @var int |
||
23 | */ |
||
24 | private $width; |
||
25 | |||
26 | /** |
||
27 | * Height. |
||
28 | * |
||
29 | * @var int |
||
30 | */ |
||
31 | private $height; |
||
32 | |||
33 | /** |
||
34 | * Margin. |
||
35 | * |
||
36 | * @var int|JonnyW\PhantomJs\Page\Margin |
||
37 | */ |
||
38 | protected $margin; |
||
39 | |||
40 | /** |
||
41 | * Header. |
||
42 | * |
||
43 | * @var \JonnyW\PhantomJs\Page\PaperBlock |
||
44 | */ |
||
45 | protected $header; |
||
46 | |||
47 | /** |
||
48 | * Footer. |
||
49 | * |
||
50 | * @var \JonnyW\PhantomJs\Page\PaperBlock |
||
51 | */ |
||
52 | protected $footer; |
||
53 | |||
54 | /** |
||
55 | * Internal constructor. |
||
56 | * |
||
57 | * @param int $width |
||
58 | * @param int $height |
||
59 | * @param int|JonnyW\PhantomJs\Page\Margin $margin (default: 0) |
||
60 | */ |
||
61 | public function __construct($width, $height, $margin = 0) |
||
67 | |||
68 | /** |
||
69 | * Set header. |
||
70 | * |
||
71 | * @param \JonnyW\PhantomJs\Page\PaperBlock $header |
||
72 | * |
||
73 | * @return |JonnyW\PhantomJs\Page\PaperSize |
||
|
|||
74 | */ |
||
75 | public function setHeader(PaperBlock $header) |
||
81 | |||
82 | /** |
||
83 | * Set footer. |
||
84 | * |
||
85 | * @param \JonnyW\PhantomJs\Page\PaperBlock $footer |
||
86 | * |
||
87 | * @return |JonnyW\PhantomJs\Page\PaperSize |
||
88 | */ |
||
89 | public function setFooter(PaperBlock $footer) |
||
95 | |||
96 | /** |
||
97 | * Format data for JSON serialization. |
||
98 | * |
||
99 | * @return array |
||
100 | */ |
||
101 | public function jsonSerialize() |
||
111 | } |
||
112 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.