diff --git a/src/Geometry/Factories/RectangleFactory.php b/src/Geometry/Factories/RectangleFactory.php index 6ad75cf7..ceeb0672 100644 --- a/src/Geometry/Factories/RectangleFactory.php +++ b/src/Geometry/Factories/RectangleFactory.php @@ -25,6 +25,20 @@ class RectangleFactory return $this; } + public function width(int $width): self + { + $this->rectangle->setWidth($width); + + return $this; + } + + public function height(int $height): self + { + $this->rectangle->setHeight($height); + + return $this; + } + public function background(mixed $color): self { $this->rectangle->setBackgroundColor($color);