respect-validation/library/Message/Template.php
Henrique Moody 02b70bf1cb
Move Template to the Message namespace
That way, everything related to messages would stay in the same
namespace.

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2024-02-09 19:50:25 +01:00

24 lines
515 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\Validatable;
#[Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]
final class Template
{
public function __construct(
public readonly string $default,
public readonly string $negative,
public readonly string $id = Validatable::TEMPLATE_STANDARD,
) {
}
}