| 1 | <?php |
||
| 17 | class Margin implements \JsonSerializable |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * Top. |
||
| 21 | * |
||
| 22 | * @var int |
||
| 23 | */ |
||
| 24 | private $top; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Left. |
||
| 28 | * |
||
| 29 | * @var int |
||
| 30 | */ |
||
| 31 | private $left; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Bottom. |
||
| 35 | * |
||
| 36 | * @var int |
||
| 37 | */ |
||
| 38 | private $bottom; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Right. |
||
| 42 | * |
||
| 43 | * @var int |
||
| 44 | */ |
||
| 45 | private $right; |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Internal constructor. |
||
| 49 | * |
||
| 50 | * @param int $top (default: 0) |
||
| 51 | * @param int $left (default: 0) |
||
| 52 | * @param int $bottom (default: 0) |
||
| 53 | * @param int $right (default: 0) |
||
| 54 | */ |
||
| 55 | public function __construct($top = 0, $left = 0, $bottom = 0, $right = 0) |
||
| 62 | |||
| 63 | /** |
||
| 64 | * Format data for JSON serialization. |
||
| 65 | * |
||
| 66 | * @return array |
||
| 67 | */ |
||
| 68 | public function jsonSerialize() |
||
| 77 | } |
||
| 78 |