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

A value the analyzer knows only by its type and where it came from.

Properties§

public TypeShape $type
public Origin $origin
public string|null $expression = null
public string|null $variable = null

Methods§

public function __construct(
    public TypeShape $type,
    public Origin $origin,
    public string|null $expression = null,
    public string|null $variable = null,
)

Parameters

$typeTypeShapeThe static type of the value
$originOriginWhere the value enters the analyzed code
$expressionstring|nullThe source expression, when short enough to quote
$variablestring|nullThe PHP variable read at the use site, when known
public static function unresolved(?string $expression = null): self
public function toPattern(): TextPattern

The gap this value leaves in any string it is spliced into.

Test cases 1
Calls 2
public function type(): TypeShape

The static type recorded for the value.

Returns

Test cases 1
public function signature(): string

The type and origin, which is all that distinguishes opaque values.

Returns

string
Test cases 1
Calls 1

Test cases 75§

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

Dedicated tests 4
Other tests reaching this symbol 71

Relations§

Instantiated in 4
Static calls 1
Type checks 8