| 1 |
<?php |
| 2 |
|
| 3 |
declare(strict_types=1); |
| 4 |
|
| 5 |
namespace Doctrine\Inflector\Rules; |
| 6 |
|
| 7 |
class Ruleset |
| 8 |
{ |
| 9 |
|
| 10 |
private $regular; |
| 11 |
|
| 12 |
|
| 13 |
private $uninflected; |
| 14 |
|
| 15 |
|
| 16 |
private $irregular; |
| 17 |
|
| 18 |
public function __construct(Transformations $regular, Patterns $uninflected, Substitutions $irregular) |
| 19 |
{ |
| 20 |
$this->regular = $regular; |
| 21 |
$this->uninflected = $uninflected; |
| 22 |
$this->irregular = $irregular; |
| 23 |
} |
| 24 |
|
| 25 |
public function getRegular(): Transformations |
| 26 |
{ |
| 27 |
return $this->regular; |
| 28 |
} |
| 29 |
|
| 30 |
public function getUninflected(): Patterns |
| 31 |
{ |
| 32 |
return $this->uninflected; |
| 33 |
} |
| 34 |
|
| 35 |
public function getIrregular(): Substitutions |
| 36 |
{ |
| 37 |
return $this->irregular; |
| 38 |
} |
| 39 |
} |