| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class Error |
||
| 17 | { |
||
| 18 | /** @var int */ |
||
| 19 | private $ErrorTypeID; |
||
| 20 | |||
| 21 | /** @var string */ |
||
| 22 | private $ErrorName; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Идентификатор ошибки (ErrorTypeID). |
||
| 26 | * |
||
| 27 | * @return int |
||
| 28 | */ |
||
| 29 | 1 | public function getCode(): int |
|
| 30 | { |
||
| 31 | 1 | return $this->ErrorTypeID; |
|
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Текст ошибки (ErrorName). |
||
| 36 | * |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | 1 | public function getMessage(): string |
|
| 42 | } |
||
| 43 | } |
||
| 44 |