Файл: vendor/intervention/image/src/Modifiers/SliceAnimationModifier.php
Строк: 37
<?php
declare(strict_types=1);
namespace InterventionImageModifiers;
use InterventionImageDriversSpecializableModifier;
use InterventionImageExceptionsInvalidArgumentException;
class SliceAnimationModifier extends SpecializableModifier
{
/**
* @throws InvalidArgumentException
*/
public function __construct(public int $offset = 0, public ?int $length = null)
{
if ($this->length !== null && $this->length <= 0) {
throw new InvalidArgumentException('Length must be greater than or equal to 1');
}
}
}