English
1 month ago
Esperanto
1 month ago
French
1 month ago
Italian
1 month ago
NorwegianBokmal
1 month ago
Portuguese
1 month ago
Spanish
1 month ago
Turkish
1 month ago
Pattern.php
1 month ago
Patterns.php
1 month ago
Ruleset.php
1 month ago
Substitution.php
1 month ago
Substitutions.php
1 month ago
Transformation.php
1 month ago
Transformations.php
1 month ago
Word.php
1 month ago
Ruleset.php
34 lines
| 1 | <?php |
| 2 | |
| 3 | declare (strict_types=1); |
| 4 | namespace IAWPSCOPED\Doctrine\Inflector\Rules; |
| 5 | |
| 6 | /** @internal */ |
| 7 | class Ruleset |
| 8 | { |
| 9 | /** @var Transformations */ |
| 10 | private $regular; |
| 11 | /** @var Patterns */ |
| 12 | private $uninflected; |
| 13 | /** @var Substitutions */ |
| 14 | private $irregular; |
| 15 | public function __construct(Transformations $regular, Patterns $uninflected, Substitutions $irregular) |
| 16 | { |
| 17 | $this->regular = $regular; |
| 18 | $this->uninflected = $uninflected; |
| 19 | $this->irregular = $irregular; |
| 20 | } |
| 21 | public function getRegular() : Transformations |
| 22 | { |
| 23 | return $this->regular; |
| 24 | } |
| 25 | public function getUninflected() : Patterns |
| 26 | { |
| 27 | return $this->uninflected; |
| 28 | } |
| 29 | public function getIrregular() : Substitutions |
| 30 | { |
| 31 | return $this->irregular; |
| 32 | } |
| 33 | } |
| 34 |