1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
ValidationError.php
См. документацию.
1<?php
2
3declare(strict_types=1);
4
5namespace Bitrix\Main\Validation;
6
7use Bitrix\Main\Error;
8use Bitrix\Main\Validation\Validator\ValidatorInterface;
9
11{
13
15 {
16 parent::__construct($message, $code, $customData);
17 $this->failedValidator = $failedValidator;
18 }
19
21 {
23 }
24
26 {
27 $this->failedValidator = $failedValidator;
28
29 return $this;
30 }
31
32 public function setCode(int|string $code): static
33 {
34 if (!empty($this->code))
35 {
36 $this->code = $code . '.' . $this->getCode();
37 }
38 else
39 {
40 $this->code = $code;
41 }
42
43 return $this;
44 }
45}
Определения error.php:15
$code
Определения error.php:17
getCode()
Определения error.php:54
$message
Определения error.php:20
$customData
Определения error.php:24
setCode(int|string $code)
Определения ValidationError.php:32
setFailedValidator(ValidatorInterface $failedValidator)
Определения ValidationError.php:25
ValidatorInterface $failedValidator
Определения ValidationError.php:12
__construct($message, $code=0, $customData=null, ?ValidatorInterface $failedValidator=null)
Определения ValidationError.php:14