imageEditOptions
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-03-18 08:36:14 +00:00
parent 557c6e5ee3
commit 8772e50122
2 changed files with 67 additions and 1 deletions

48
src/ImageEditOptions.php Normal file
View File

@@ -0,0 +1,48 @@
<?php
namespace Nwb\MultiDownloaderClient;
class ImageEditOptions
{
/**
* @var int
*/
private $width;
/**
* @var int
*/
private $height;
public function width(int $width)
{
$this->width = $width;
return $this;
}
public function getWidth(): int
{
return $this->width;
}
public function height(int $height)
{
$this->height = $height;
return $this;
}
public function getHeight(): int
{
return $this->height;
}
public function toArray(): array
{
return array_filter([
'width' => $this->width,
'height' => $this->height
]);
}
}