Debian Codegraph @

lib/3rdParty/composer/doctrine/inflector/src/LanguageInflectorFactory.php

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