mirror of
https://github.com/Respect/Validation.git
synced 2026-03-17 15:50:03 +01:00
Besides the interface's name, everything already calls this type "Rule", not "Validatable." This commit puts a stone on it and renames the interface for better naming.
25 lines
489 B
PHP
25 lines
489 B
PHP
<?php
|
|
|
|
/*
|
|
* Copyright (c) Alexandre Gomes Gaigalas <alganet@gmail.com>
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Respect\Validation;
|
|
|
|
interface Rule
|
|
{
|
|
public const TEMPLATE_STANDARD = '__standard__';
|
|
|
|
public function evaluate(mixed $input): Result;
|
|
|
|
public function getName(): ?string;
|
|
|
|
public function setName(string $name): static;
|
|
|
|
public function getTemplate(): ?string;
|
|
|
|
public function setTemplate(string $template): static;
|
|
}
|