respect-validation/library/Rule.php
Henrique Moody e6af762fe4
Rename "Validatable" to "Rule"
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.
2024-12-05 19:32:14 +01:00

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;
}