1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace Yiisoft\Validator; |
||
6 | |||
7 | trait HasValidationErrorMessage |
||
8 | { |
||
9 | 3 | public function message(string $message): self |
|
10 | { |
||
11 | 3 | $new = clone $this; |
|
12 | 3 | $new->message = $message; |
|
0 ignored issues
–
show
Bug
Best Practice
introduced
by
Loading history...
|
|||
13 | 3 | return $new; |
|
14 | } |
||
15 | } |
||
16 |