| Total Complexity | 5 |
| Total Lines | 68 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class MappedControlledError |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | private $class; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | private $message; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | private $code; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var string |
||
| 32 | */ |
||
| 33 | private $description; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * MappedControlledError constructor. |
||
| 37 | * |
||
| 38 | * @param string $class |
||
| 39 | * @param string $message |
||
| 40 | * @param string $code |
||
| 41 | * @param string $description |
||
| 42 | */ |
||
| 43 | public function __construct(string $class, string $message, string $code, string $description) |
||
| 44 | { |
||
| 45 | $this->class = $class; |
||
| 46 | $this->message = $message; |
||
| 47 | $this->code = $code; |
||
| 48 | $this->description = $description; |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return string |
||
| 53 | */ |
||
| 54 | public function getClass(): string |
||
| 55 | { |
||
| 56 | return $this->class; |
||
| 57 | } |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @return string |
||
| 61 | */ |
||
| 62 | public function getMessage(): string |
||
| 63 | { |
||
| 64 | return $this->message; |
||
| 65 | } |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @return string |
||
| 69 | */ |
||
| 70 | public function getCode(): string |
||
| 73 | } |
||
| 74 | |||
| 75 | /** |
||
| 76 | * @return string |
||
| 77 | */ |
||
| 78 | public function getDescription(): string |
||
| 83 |