| Conditions | 3 |
| Paths | 4 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | 3 | final public function withSingularRules(?Ruleset $singularRules, bool $reset = false) : LanguageInflectorFactory |
|
| 37 | { |
||
| 38 | 3 | if ($reset) { |
|
| 39 | 1 | $this->singularRulesets = []; |
|
| 40 | } |
||
| 41 | |||
| 42 | 3 | if ($singularRules instanceof Ruleset) { |
|
| 43 | 3 | array_unshift($this->singularRulesets, $singularRules); |
|
| 44 | } |
||
| 45 | |||
| 46 | 3 | return $this; |
|
| 47 | } |
||
| 66 |