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

An object the analyzer tracked by class.

An enum case carries the case name, which resolves ->value to a literal. A prepared statement carries the identifier of the catalog entry it came from, which is how a later execute() finds the query it binds values to. Modelled builders also carry an allocation identity and immutable state, so aliases observe mutations.

Properties§

public string $className
public string|null $enumCase = null
public string|null $statementId = null
public string|null $identity = null
public ArrayTerm|null $state = null

Methods§

public function __construct(
    public string $className,
    public string|null $enumCase = null,
    public string|null $statementId = null,
    public string|null $identity = null,
    public ArrayTerm|null $state = null,
)

Parameters

$classNamestringThe fully qualified class name, without a leading backslash
$enumCasestring|nullThe case name when the object is an enum case
$statementIdstring|nullThe catalog entry a prepared statement belongs to
$identitystring|nullThe allocation followed across aliases
$stateArrayTerm|nullThe immutable properties of a modelled object
public function toPattern(): TextPattern

An object never resolves to text, so it becomes a gap.

Test cases 2
Calls 4

Test cases 66§

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

Dedicated tests 5
Other tests reaching this symbol 61

Relations§

Instantiated in 20
Type checks 16
Type declarations 12