mirror of
https://github.com/linuxserver/Heimdall.git
synced 2026-08-07 07:16:13 +00:00
39191885e5
- laravel/framework ^11.45 -> ^12.0 (installed 12.63.0) - phpunit/phpunit ^10.5 -> ^11.0; migrate phpunit.xml to the 11.5 schema - graham-campbell/github ^12.5 -> ^13.0 (v12 caps illuminate/support at ^11) - Carbon 3 pulled in by L12; no application code changes required - gitignore /.phpunit.cache Full suite green: 59 tests, 128 assertions (1 skipped).
32 lines
874 B
PHP
32 lines
874 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Doctrine\Inflector\Rules\Italian;
|
|
|
|
use Doctrine\Inflector\Rules\Patterns;
|
|
use Doctrine\Inflector\Rules\Ruleset;
|
|
use Doctrine\Inflector\Rules\Substitutions;
|
|
use Doctrine\Inflector\Rules\Transformations;
|
|
|
|
final class Rules
|
|
{
|
|
public static function getSingularRuleset(): Ruleset
|
|
{
|
|
return new Ruleset(
|
|
new Transformations(...Inflectible::getSingular()),
|
|
new Patterns(...Uninflected::getSingular()),
|
|
(new Substitutions(...Inflectible::getIrregular()))->getFlippedSubstitutions()
|
|
);
|
|
}
|
|
|
|
public static function getPluralRuleset(): Ruleset
|
|
{
|
|
return new Ruleset(
|
|
new Transformations(...Inflectible::getPlural()),
|
|
new Patterns(...Uninflected::getPlural()),
|
|
new Substitutions(...Inflectible::getIrregular())
|
|
);
|
|
}
|
|
}
|