mirror of
https://github.com/Intervention/image.git
synced 2025-08-11 00:14:03 +02:00
Add width & height setters in EllipseFactory
This commit is contained in:
@@ -25,6 +25,20 @@ class EllipseFactory
|
|||||||
return $this;
|
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
|
public function background(mixed $color): self
|
||||||
{
|
{
|
||||||
$this->ellipse->setBackgroundColor($color);
|
$this->ellipse->setBackgroundColor($color);
|
||||||
|
Reference in New Issue
Block a user