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