<?php

declare(strict_types=1);

namespace apexl\Io\modules\validation\ValidationRules;

final readonly class Unique extends ValidationRule
{
    public function __construct(string $table, string $field = 'id')
    {
        parent::__construct(sprintf('%s,%s', $table, $field));
    }

    public function toFormKitValidatorString(): ?string
    {
        return null;
    }
}
