All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m3s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 16s
Build, Push and Deploy / deploy-staging (push) Successful in 32s
Build, Push and Deploy / deploy-production (push) Has been skipped
Build, Push and Deploy / cleanup (push) Successful in 1s
40 lines
777 B
PHP
40 lines
777 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Doctrine\Inflector\Rules;
|
|
|
|
class Ruleset
|
|
{
|
|
/** @var Transformations */
|
|
private $regular;
|
|
|
|
/** @var Patterns */
|
|
private $uninflected;
|
|
|
|
/** @var Substitutions */
|
|
private $irregular;
|
|
|
|
public function __construct(Transformations $regular, Patterns $uninflected, Substitutions $irregular)
|
|
{
|
|
$this->regular = $regular;
|
|
$this->uninflected = $uninflected;
|
|
$this->irregular = $irregular;
|
|
}
|
|
|
|
public function getRegular(): Transformations
|
|
{
|
|
return $this->regular;
|
|
}
|
|
|
|
public function getUninflected(): Patterns
|
|
{
|
|
return $this->uninflected;
|
|
}
|
|
|
|
public function getIrregular(): Substitutions
|
|
{
|
|
return $this->irregular;
|
|
}
|
|
}
|