PATH:
home
/
centosnipponia
/
public_html
/
appnip-old
/
vendor
/
doctrine
/
inflector
/
lib
/
Doctrine
/
Inflector
/
Rules
<?php declare(strict_types=1); namespace Doctrine\Inflector\Rules; use function array_map; use function implode; use function preg_match; class Patterns { /** @var Pattern[] */ private $patterns; /** @var string */ private $regex; public function __construct(Pattern ...$patterns) { $this->patterns = $patterns; $patterns = array_map(static function (Pattern $pattern): string { return $pattern->getPattern(); }, $this->patterns); $this->regex = '/^(?:' . implode('|', $patterns) . ')$/i'; } public function matches(string $word): bool { return preg_match($this->regex, $word, $regs) === 1; } }
[+]
..
[+]
English
[+]
French
[+]
NorwegianBokmal
[-] Pattern.php
[edit]
[-] Patterns.php
[edit]
[+]
Portuguese
[-] Ruleset.php
[edit]
[+]
Spanish
[-] Substitution.php
[edit]
[-] Substitutions.php
[edit]
[-] Transformation.php
[edit]
[-] Transformations.php
[edit]
[+]
Turkish
[-] Word.php
[edit]
[-] .htaccess.disabled
[edit]