for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace EaselDrawing\Elements;
use EaselDrawing\AbstractElement;
use EaselDrawing\Color;
class Rectangle extends AbstractElement
{
/** @var int border weight */
private $thickness;
/** @var Color */
private $color;
/**
* Rectangle constructor.
* @param int $x
* @param int $y
* @param int $width
* @param int $height
* @param Color $color
* @param int $thickness
*/
public function __construct(int $x, int $y, int $width, int $height, Color $color, $thickness = 1)
parent::__construct($x, $y, $width, $height);
$this->thickness = $thickness;
$this->color = $color;
}
public function getThickness(): int
return $this->thickness;
public function getColor(): Color
return $this->color;