Total Complexity | 2 |
Total Lines | 14 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php declare( strict_types=1 ); |
||
5 | class RegexUtils { |
||
6 | /** |
||
7 | * Get a regex matching any element in the given array |
||
8 | * |
||
9 | * @param string $delimiter |
||
10 | * @param IRegexAble ...$elements |
||
11 | * @return string |
||
12 | */ |
||
13 | public static function regexFromArray( string $delimiter = '/', IRegexAble ...$elements ) : string { |
||
21 |