mirror of
https://github.com/Respect/Validation.git
synced 2026-03-17 07:45:45 +01:00
That way, everything related to messages would stay in the same namespace. Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
24 lines
515 B
PHP
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,
|
|
) {
|
|
}
|
|
}
|