Conditions | 2 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
37 | 7 | public function __construct(String $itemType, String $itemName, $code = 0, \Exception $previous = null) |
|
38 | { |
||
39 | 7 | $this->itemName = $itemName; |
|
40 | 7 | $this->itemType = $itemType; |
|
41 | |||
42 | try { |
||
43 | 7 | $message = self::getNotFoundMessage($itemType, $itemName); |
|
44 | 6 | parent::__construct($message, 404, $previous); |
|
45 | 1 | } catch (\Exception $e) { |
|
46 | 1 | parent::__construct($e->getMessage()); |
|
47 | } |
||
48 | 7 | } |
|
49 | |||
83 |