| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3.0261 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | 1 | public function getOptions(): array |
|
| 33 | { |
||
| 34 | 1 | $arrayOfRules = []; |
|
| 35 | 1 | foreach ($this->rules as $rule) { |
|
| 36 | 1 | if ($rule instanceof RuleInterface) { |
|
| 37 | 1 | $arrayOfRules[] = array_merge([$rule->getName()], $rule->getOptions()); |
|
| 38 | } else { |
||
| 39 | $arrayOfRules[] = [get_class($rule)]; |
||
| 40 | } |
||
| 41 | } |
||
| 42 | 1 | return $arrayOfRules; |
|
| 43 | } |
||
| 45 |