| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | 4 | public function setSkipExceptions(array $skipExceptions) |
|
| 33 | { |
||
| 34 | 4 | if (in_array(false, array_map('is_string', $skipExceptions), true)) { |
|
| 35 | 1 | throw new InvalidArgumentException('Invalid value in skip_exceptions'); |
|
| 36 | } |
||
| 37 | |||
| 38 | 3 | if (in_array(false, array_map('class_exists', $skipExceptions), true)) { |
|
| 39 | 1 | throw new InvalidArgumentException('A string in skip_exceptions values is not a class'); |
|
| 40 | } |
||
| 41 | |||
| 42 | 2 | $this->skipExceptions = $skipExceptions; |
|
| 43 | 2 | } |
|
| 44 | |||
| 66 |