Файл: vendor/intervention/image/src/Modifiers/PixelateModifier.php
Строк: 31
<?php
declare(strict_types=1);
namespace InterventionImageModifiers;
use InterventionImageDriversSpecializableModifier;
use InterventionImageExceptionsInvalidArgumentException;
class PixelateModifier extends SpecializableModifier
{
/**
* @throws InvalidArgumentException
*/
public function __construct(public int $size)
{
if ($this->size < 1) {
throw new InvalidArgumentException('Invalid pixelation size. Only use int<1, max>');
}
}
}