respect-validation/library/ValidatorFactory.php
Henrique Moody 5afb69d6ad
Rename RuleFactory to ValidatorFactory
Since this factory creates “validators”, it makes sense that its name
follows the same name as the objects it creates.
2026-01-05 17:36:35 +01:00

16 lines
324 B
PHP

<?php
/*
* Copyright (c) Alexandre Gomes Gaigalas <alganet@gmail.com>
* SPDX-License-Identifier: MIT
*/
declare(strict_types=1);
namespace Respect\Validation;
interface ValidatorFactory
{
/** @param array<int, mixed> $arguments */
public function create(string $ruleName, array $arguments = []): Validator;
}