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
Substitution.php
27 lines
| 1 | <?php |
| 2 | |
| 3 | declare (strict_types=1); |
| 4 | namespace IAWPSCOPED\Doctrine\Inflector\Rules; |
| 5 | |
| 6 | /** @internal */ |
| 7 | final class Substitution |
| 8 | { |
| 9 | /** @var Word */ |
| 10 | private $from; |
| 11 | /** @var Word */ |
| 12 | private $to; |
| 13 | public function __construct(Word $from, Word $to) |
| 14 | { |
| 15 | $this->from = $from; |
| 16 | $this->to = $to; |
| 17 | } |
| 18 | public function getFrom() : Word |
| 19 | { |
| 20 | return $this->from; |
| 21 | } |
| 22 | public function getTo() : Word |
| 23 | { |
| 24 | return $this->to; |
| 25 | } |
| 26 | } |
| 27 |