for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Staticus\Resources\Image;
class CropImageDO implements CropImageDOInterface
{
/**
* Position of cropped area X coordinate of image left top corner
* @var int
*/
protected $x;
* Position of cropped area Y coordinate of image left top corner
protected $y;
* Width of cropped area
protected $width;
* Height of cropped area
protected $height;
* @return int
public function getX()
return $this->x;
}
* @param int $x
* @return CropImageDO
public function setX($x)
$this->x = $x;
return $this;
public function getY()
return $this->y;
* @param int $y
public function setY($y)
$this->y = $y;
public function getWidth()
return $this->width;
* @param int $width
public function setWidth($width)
$this->width = $width;
public function getHeight()
return $this->height;
* @param int $height
public function setHeight($height)
$this->height = $height;
public function __toString()
return $this->getX() . 'x' . $this->getY() . 'x' . $this->getWidth() . 'x' . $this->getHeight();
public function toArray()
$ar = [];
foreach ($this as $k => $p) {
$this
this<Staticus\Resources\Image\CropImageDO>
$ar[$k] = $p;
return $ar;