Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
29 | 12 | public function __construct( |
|
30 | string $title, |
||
31 | int $code, |
||
32 | string $message = null, |
||
33 | TypeDoc $dataDoc = null, |
||
34 | string $identifier = null |
||
35 | ) { |
||
36 | 12 | $this->title = $title; |
|
37 | 12 | $this->code = $code; |
|
38 | 12 | $this->message = $message; |
|
39 | 12 | $this->dataDoc = $dataDoc; |
|
40 | // Use title and code as id if not provided |
||
41 | 12 | $this->setIdentifier($identifier ?? $title.((string)$code)); |
|
42 | 12 | } |
|
115 |