1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-19 20:21:32 +02:00

Add width & height setter

This commit is contained in:
Oliver Vogel
2023-12-02 09:28:10 +01:00
parent be15863d3f
commit d88cc21b85

View File

@@ -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);