final class PatternTerm
    implements Term
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.

A string whose resolved parts are known but which still has gaps.

Properties§

public TextPattern $pattern

Methods§

public function __construct(public TextPattern $pattern)

Parameters

$patternTextPatternThe partially resolved string
public function toPattern(): TextPattern

The pattern itself.

Test cases 1
public function type(): TypeShape

Always string, because the gaps are spliced into text.

Returns

Test cases 2
Calls 1
public function signature(): string

The pattern signature, which keeps gap origins apart.

Returns

string
Test cases 1
Calls 1

Test cases 35§

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 32

Relations§

Instantiated in 2
Type checks 1