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

A scalar the analyzer resolved exactly.

Properties§

public string|int|float|bool|null $value

Methods§

public function __construct(public string|int|float|bool|null $value)

Parameters

$valuestring|int|float|bool|nullThe resolved value
public function toPattern(): TextPattern

The value as PHP writes it into a string.

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

The scalar type of the resolved value.

Returns

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

The value tagged with its type so 1 and '1' stay distinct.

Returns

string
Test cases 2
Calls 2

Private surface 1§

Implementation details, listed for orientation only.

private ?string $signature = null

Test cases 67§

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 63

Relations§

Instantiated in 2
Type checks 6
Type declarations 1