PHP 8.2.31
Preview: Transformation.php Size: 790 B
/proc/thread-self/root/opt/cpanel/ea-wappspector/vendor/doctrine/inflector/src/Rules/Transformation.php

<?php

declare(strict_types=1);

namespace Doctrine\Inflector\Rules;

use Doctrine\Inflector\WordInflector;

use function preg_replace;

final class Transformation implements WordInflector
{
    /** @var Pattern */
    private $pattern;

    /** @var string */
    private $replacement;

    public function __construct(Pattern $pattern, string $replacement)
    {
        $this->pattern     = $pattern;
        $this->replacement = $replacement;
    }

    public function getPattern(): Pattern
    {
        return $this->pattern;
    }

    public function getReplacement(): string
    {
        return $this->replacement;
    }

    public function inflect(string $word): string
    {
        return (string) preg_replace($this->pattern->getRegex(), $this->replacement, $word);
    }
}

Directory Contents

Dirs: 8 × Files: 8

Name Size Perms Modified Actions
English DIR
- drwxr-xr-x 2025-08-10 19:31:58
Edit Download
Esperanto DIR
- drwxr-xr-x 2025-08-10 19:31:58
Edit Download
French DIR
- drwxr-xr-x 2025-08-10 19:31:58
Edit Download
Italian DIR
- drwxr-xr-x 2025-08-10 19:31:58
Edit Download
- drwxr-xr-x 2025-08-10 19:31:58
Edit Download
- drwxr-xr-x 2025-08-10 19:31:58
Edit Download
Spanish DIR
- drwxr-xr-x 2025-08-10 19:31:58
Edit Download
Turkish DIR
- drwxr-xr-x 2025-08-10 19:31:58
Edit Download
788 B lrw-r--r-- 2025-08-10 19:31:58
Edit Download
602 B lrw-r--r-- 2025-08-10 19:31:58
Edit Download
777 B lrw-r--r-- 2025-08-10 19:31:58
Edit Download
451 B lrw-r--r-- 2025-08-10 19:31:58
Edit Download
1.34 KB lrw-r--r-- 2025-08-10 19:31:58
Edit Download
790 B lrw-r--r-- 2025-08-10 19:31:58
Edit Download
648 B lrw-r--r-- 2025-08-10 19:31:58
Edit Download
294 B lrw-r--r-- 2025-08-10 19:31:58
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).