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

$patternstring

Throws

InvalidInputException If the pattern is empty or not root-relative
Calls 9
public function matches(string $path): bool

Matches a relative path; a trailing slash represents a directory.

Parameters

$pathstring

Returns

bool
Test cases 1
Calls 1
public static function matchesAny(list<self> $patterns, string $path): bool

Private surface 1§

Implementation details, listed for orientation only.

private string $expression

Test cases 5§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 3
Other tests reaching this symbol 2

Relations§

Instantiated in 2
Static calls 3