Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 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
}