| Total Complexity | 9 |
| Total Lines | 110 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class Padding implements ArraySerializableInterface, JsonSerializable |
||
| 14 | { |
||
| 15 | use ArraySerializable; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var int |
||
| 19 | */ |
||
| 20 | private $bottom; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var int |
||
| 24 | */ |
||
| 25 | private $left; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var int |
||
| 29 | */ |
||
| 30 | private $right; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @var int |
||
| 34 | */ |
||
| 35 | private $top; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return int |
||
| 39 | */ |
||
| 40 | public function getBottom() |
||
| 41 | { |
||
| 42 | return $this->bottom; |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param int $bottom |
||
| 47 | * |
||
| 48 | * @return $this |
||
| 49 | */ |
||
| 50 | public function setBottom($bottom) |
||
| 51 | { |
||
| 52 | $this->bottom = intval($bottom); |
||
| 53 | |||
| 54 | return $this; |
||
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @return int |
||
| 59 | */ |
||
| 60 | public function getLeft() |
||
| 61 | { |
||
| 62 | return $this->left; |
||
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @param int $left |
||
| 67 | * |
||
| 68 | * @return $this |
||
| 69 | */ |
||
| 70 | public function setLeft($left) |
||
| 71 | { |
||
| 72 | $this->left = intval($left); |
||
| 73 | |||
| 74 | return $this; |
||
| 75 | } |
||
| 76 | |||
| 77 | /** |
||
| 78 | * @return int |
||
| 79 | */ |
||
| 80 | public function getRight() |
||
| 83 | } |
||
| 84 | |||
| 85 | /** |
||
| 86 | * @param int $right |
||
| 87 | * |
||
| 88 | * @return $this |
||
| 89 | */ |
||
| 90 | public function setRight($right) |
||
| 95 | } |
||
| 96 | |||
| 97 | /** |
||
| 98 | * @return int |
||
| 99 | */ |
||
| 100 | public function getTop() |
||
| 101 | { |
||
| 102 | return $this->top; |
||
| 103 | } |
||
| 104 | |||
| 105 | /** |
||
| 106 | * @param int $top |
||
| 107 | * |
||
| 108 | * @return $this |
||
| 109 | */ |
||
| 110 | public function setTop($top) |
||
| 111 | { |
||
| 112 | $this->top = intval($top); |
||
| 113 | |||
| 114 | return $this; |
||
| 115 | } |
||
| 116 | |||
| 117 | /** |
||
| 118 | * @return array |
||
| 119 | */ |
||
| 120 | public function jsonSerialize() |
||
| 123 | } |
||
| 124 | } |
||
| 125 |