From 1831a4f45e6f5ac6d13c9178827548109cd01f46 Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Wed, 20 Dec 2023 16:26:01 +0100 Subject: [PATCH] Add width & height setters in EllipseFactory --- src/Geometry/Factories/EllipseFactory.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/Geometry/Factories/EllipseFactory.php b/src/Geometry/Factories/EllipseFactory.php index 12662572..509539c2 100644 --- a/src/Geometry/Factories/EllipseFactory.php +++ b/src/Geometry/Factories/EllipseFactory.php @@ -25,6 +25,20 @@ public function size(int $width, int $height): self return $this; } + public function width(int $width): self + { + $this->ellipse->setWidth($width); + + return $this; + } + + public function height(int $height): self + { + $this->ellipse->setHeight($height); + + return $this; + } + public function background(mixed $color): self { $this->ellipse->setBackgroundColor($color);