Skip to content

Commit

Permalink
Add width & height setters in EllipseFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Dec 20, 2023
1 parent 9ff8cd2 commit 1831a4f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Geometry/Factories/EllipseFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1831a4f

Please sign in to comment.