Total Complexity | 3 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | trait LevelValidatorTrait |
||
11 | { |
||
12 | /** |
||
13 | * Determines if the specified level is legal under PSR-3. |
||
14 | * |
||
15 | * @param mixed $level The level to validate. |
||
16 | * |
||
17 | * @return void |
||
18 | * |
||
19 | * @throws InvalidArgumentException Throw if $level is not a know RFC-5424 level. |
||
20 | */ |
||
21 | protected function validateLevel($level) |
||
28 |