| Total Complexity | 5 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | final class SingularizerFactory |
||
| 14 | { |
||
| 15 | /** @var Transformations */ |
||
| 16 | private $transformations; |
||
| 17 | |||
| 18 | /** @var Patterns */ |
||
| 19 | private $uninflected; |
||
| 20 | |||
| 21 | /** @var Substitutions */ |
||
| 22 | private $irregular; |
||
| 23 | |||
| 24 | 3 | public function withTransformations(Transformations $transformations) : self |
|
| 25 | { |
||
| 26 | 3 | $this->transformations = $transformations; |
|
| 27 | |||
| 28 | 3 | return $this; |
|
| 29 | } |
||
| 30 | |||
| 31 | 3 | public function withUninflected(Patterns $uninflected) : self |
|
| 36 | } |
||
| 37 | |||
| 38 | 3 | public function withIrregular(Substitutions $irregular) : self |
|
| 43 | } |
||
| 44 | |||
| 45 | 527 | public function build() : Ruleset |
|
| 52 | } |
||
| 53 | |||
| 54 | 524 | private function getDefaultIrregular() : Substitutions |
|
| 61 |