| Total Complexity | 4 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php declare(strict_types = 1); |
||
| 28 | class Error |
||
| 29 | { |
||
| 30 | /** |
||
| 31 | * @var int |
||
| 32 | */ |
||
| 33 | private $code; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @var string |
||
| 37 | */ |
||
| 38 | private $message; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return int |
||
| 42 | */ |
||
| 43 | 3 | public function getCode(): int |
|
| 44 | { |
||
| 45 | 3 | return $this->code; |
|
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @param int $code |
||
| 50 | */ |
||
| 51 | 7 | public function setCode(int $code): void |
|
| 52 | { |
||
| 53 | 7 | $this->code = $code; |
|
| 54 | 7 | } |
|
| 55 | |||
| 56 | /** |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | 7 | public function getMessage(): string |
|
| 60 | { |
||
| 61 | 7 | return $this->message; |
|
| 62 | } |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @param string $message |
||
| 66 | */ |
||
| 67 | 7 | public function setMessage(string $message): void |
|
| 70 | 7 | } |
|
| 71 | |||
| 72 | |||
| 73 | } |
||
| 74 |