mirror of
https://github.com/Respect/Validation.git
synced 2026-03-18 08:09:51 +01:00
Since this factory creates “validators”, it makes sense that its name follows the same name as the objects it creates.
16 lines
324 B
PHP
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;
|
|
}
|