Rules
1 month ago
CachedWordInflector.php
1 month ago
GenericLanguageInflectorFactory.php
1 month ago
Inflector.php
1 month ago
InflectorFactory.php
1 month ago
Language.php
1 month ago
LanguageInflectorFactory.php
1 month ago
NoopWordInflector.php
1 month ago
RulesetInflector.php
1 month ago
WordInflector.php
1 month ago
LanguageInflectorFactory.php
31 lines
| 1 | <?php |
| 2 | |
| 3 | declare (strict_types=1); |
| 4 | namespace IAWPSCOPED\Doctrine\Inflector; |
| 5 | |
| 6 | use IAWPSCOPED\Doctrine\Inflector\Rules\Ruleset; |
| 7 | /** @internal */ |
| 8 | interface LanguageInflectorFactory |
| 9 | { |
| 10 | /** |
| 11 | * Applies custom rules for singularisation |
| 12 | * |
| 13 | * @param bool $reset If true, will unset default inflections for all new rules |
| 14 | * |
| 15 | * @return $this |
| 16 | */ |
| 17 | public function withSingularRules(?Ruleset $singularRules, bool $reset = \false) : self; |
| 18 | /** |
| 19 | * Applies custom rules for pluralisation |
| 20 | * |
| 21 | * @param bool $reset If true, will unset default inflections for all new rules |
| 22 | * |
| 23 | * @return $this |
| 24 | */ |
| 25 | public function withPluralRules(?Ruleset $pluralRules, bool $reset = \false) : self; |
| 26 | /** |
| 27 | * Builds the inflector instance with all applicable rules |
| 28 | */ |
| 29 | public function build() : Inflector; |
| 30 | } |
| 31 |