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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user