You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
517 B
18 lines
517 B
<?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;
|
|
}
|
|
}
|