Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 4 | ||
Bugs | 3 | Features | 1 |
1 | <?php |
||
49 | protected function hasCategory() |
||
50 | { |
||
51 | if (! array_key_exists('category_id', $this->infoNotification)) { |
||
52 | $error = 'Category not found please provide one, |
||
53 | you can not store a notification without category id'; |
||
54 | |||
55 | throw new CategoryNotFoundException($error); |
||
56 | } |
||
57 | |||
58 | return true; |
||
59 | } |
||
60 | } |
||
61 |