for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace eXpansion\Framework\Gui\Components;
use FML\Script\Features\ScriptFeature;
use FML\Types\Renderable;
abstract class abstractUiElement extends ScriptFeature implements Renderable
{
protected $posX = 0;
protected $posY = 0;
protected $posZ = 0;
protected $width;
protected $height;
/**
* @param int $posX
* @param int $posY
* @param int $posZ
*/
public function setPosition($posX = 0, $posY = 0, $posZ = 0)
$this->posX = $posX;
$this->posY = $posY;
$this->posZ = $posZ;
return $this;
}
public function setX($X)
$this->posX = $X;
public function setY($Y)
$this->posY = $Y;
public function setZ($Z)
$this->posZ = $Z;
* Render the XML element
*
* @param \DOMDocument $domDocument DOMDocument for which the XML element should be rendered
* @return \DOMElement
abstract public function render(\DOMDocument $domDocument);
* @return int
public function getX()
return $this->posX;
public function getY()
return $this->posY;
public function getZ()
return $this->posZ;
* @return mixed
public function getWidth()
return $this->width;
* @param mixed $width
public function setWidth($width)
$this->width = $width;
* @param mixed $height
* @return abstractUiElement
public function setHeight($height)
$this->height = $height;
public function getHeight()
return $this->height;
public function setSize($x, $y)
$this->width = $x;
$this->height = $y;