| Conditions | 2 |
| Paths | 2 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 2.0625 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | 21 | protected static function getString($inflection, $string) |
|
| 31 | { |
||
| 32 | 21 | if (!self::hasString($inflection, $string)) { |
|
| 33 | throw new \BadMethodCallException("String {$string} is not contained in the {$inflection} dictionary"); |
||
| 34 | } |
||
| 35 | 21 | return self::$dictionary[$inflection][$string]; |
|
| 36 | } |
||
| 48 |