Файл: vendor/intervention/image/src/Modifiers/ResizeModifier.php
Строк: 35
<?php
declare(strict_types=1);
namespace InterventionImageModifiers;
use InterventionImageDriversSpecializableModifier;
use InterventionImageExceptionsInvalidArgumentException;
class ResizeModifier extends SpecializableModifier
{
/**
* Create new modifier object.
*
* @throws InvalidArgumentException
*/
public function __construct(public ?int $width = null, public ?int $height = null)
{
if ($width === null && $height === null) {
throw new InvalidArgumentException('Please provide at least one argument: width, height, or both.');
}
}
}