Conditions | 4 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 4 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | 1 | public function modifier(string ...$modifiers): static |
|
25 | { |
||
26 | 1 | foreach ($modifiers as $modifier) { |
|
27 | switch ($modifier) { |
||
28 | 1 | case static::LOW_PRIORITY: |
|
29 | 1 | $this->modifiers[0] = $modifier; |
|
30 | 1 | break; |
|
31 | 1 | case static::IGNORE: |
|
32 | 1 | $this->modifiers[1] = $modifier; |
|
33 | 1 | break; |
|
34 | } |
||
35 | } |
||
36 | |||
37 | 1 | return $this; |
|
38 | } |
||
75 |