18 lines
517 B
PHP
18 lines
517 B
PHP
<?php
|
|
|
|
namespace App\Models\Validation\Messages;
|
|
|
|
use App\Models\Validation\Messages\InformativeValidator;
|
|
use App\Models\Validation\Validators\Validator;
|
|
|
|
class NextInformativeValidator extends InformativeValidator {
|
|
protected InformativeValidator $nextValidator;
|
|
|
|
public function __construct(string $message, Validator $validator, InformativeValidator $nextValidator)
|
|
{
|
|
$this->setMessage($message);
|
|
$this->setValidator($validator);
|
|
$this->nextValidator = $nextValidator;
|
|
}
|
|
}
|