| 1 | <?php |
||
| 8 | class WidgetBackground implements Renderable |
||
| 9 | { |
||
| 10 | protected $posX = 0; |
||
| 11 | protected $posY = 0; |
||
| 12 | protected $posZ = 0; |
||
| 13 | protected $id; |
||
| 14 | protected $width; |
||
| 15 | protected $height; |
||
| 16 | protected $action; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * WidgetBackground constructor. |
||
| 20 | * @param float $width |
||
| 21 | * @param float $height |
||
| 22 | */ |
||
| 23 | public function __construct($width, $height) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Render the XML element |
||
| 31 | * |
||
| 32 | * @param \DOMDocument $domDocument DOMDocument for which the XML element should be rendered |
||
| 33 | * @return \DOMElement |
||
| 34 | */ |
||
| 35 | public function render(\DOMDocument $domDocument) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return int |
||
| 52 | */ |
||
| 53 | public function getPosX(): int |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @param int $posX |
||
| 60 | */ |
||
| 61 | public function setPosX(int $posX) |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @return int |
||
| 68 | */ |
||
| 69 | public function getPosY(): int |
||
| 73 | |||
| 74 | /** |
||
| 75 | * @param int $posY |
||
| 76 | */ |
||
| 77 | public function setPosY(int $posY) |
||
| 81 | |||
| 82 | /** |
||
| 83 | * @return int |
||
| 84 | */ |
||
| 85 | public function getPosZ(): int |
||
| 89 | |||
| 90 | /** |
||
| 91 | * @param int $posZ |
||
| 92 | */ |
||
| 93 | public function setPosZ(int $posZ) |
||
| 97 | |||
| 98 | /** |
||
| 99 | * @return mixed |
||
| 100 | */ |
||
| 101 | public function getWidth() |
||
| 105 | |||
| 106 | /** |
||
| 107 | * @param mixed $width |
||
| 108 | */ |
||
| 109 | public function setWidth($width) |
||
| 113 | |||
| 114 | /** |
||
| 115 | * @return mixed |
||
| 116 | */ |
||
| 117 | public function getHeight() |
||
| 121 | |||
| 122 | /** |
||
| 123 | * @param mixed $height |
||
| 124 | */ |
||
| 125 | public function setHeight($height) |
||
| 129 | |||
| 130 | /** |
||
| 131 | * @return mixed |
||
| 132 | */ |
||
| 133 | public function getAction() |
||
| 137 | |||
| 138 | /** |
||
| 139 | * @param mixed $action |
||
| 140 | */ |
||
| 141 | public function setAction($action) |
||
| 145 | |||
| 146 | /** |
||
| 147 | * @return mixed |
||
| 148 | */ |
||
| 149 | public function getId() |
||
| 153 | |||
| 154 | /** |
||
| 155 | * @param mixed $id |
||
| 156 | */ |
||
| 157 | public function setId($id) |
||
| 161 | |||
| 162 | |||
| 163 | } |
||
| 164 |