respect-validation/library/Message/Template.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

24 lines
501 B
PHP

<?php
/*
* Copyright (c) Alexandre Gomes Gaigalas <alganet@gmail.com>
* SPDX-License-Identifier: MIT
*/
declare(strict_types=1);
namespace Respect\Validation\Message;
use Attribute;
use Respect\Validation\Rule;
#[Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]
final class Template
{
public function __construct(
public readonly string $default,
public readonly string $inverted,
public readonly string $id = Rule::TEMPLATE_STANDARD,
) {
}
}