classPathPattern
final class PathPattern
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Matches complete root-relative paths with *, ? and recursive ** wildcards.
Methods§
public function __construct(string $pattern)Parameters
$pattern | string |
Throws
InvalidInputException If the pattern is empty or not root-relativepublic function matches(string $path): boolMatches a relative path; a trailing slash represents a directory.
Parameters
$path | string |
Returns
boolTest cases 1
Calls 1
- function-call
preg_matchline 42
public static function matchesAny(list<self> $patterns, string $path): boolTests whether any pattern selects a path.
Parameters
$patterns | list<self> | Accepted patterns |
$path | string |
Returns
boolCalled from 3
Private surface 1§
Implementation details, listed for orientation only.
private string $expressionTest cases 5§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.