final class Equivalence
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.

Compares two statement structures operand by operand.

Two structures correspond when they have the same classes, the same scalar values and enum cases, and lists of the same length and order, recursively. This is a comparison of actual operands, not of a fingerprint or of text.

Methods§

public function members(object $value): list<ReflectionProperty>

Answers the properties of a class, cached for one comparison.

Parameters

$valueobject

Returns

list<ReflectionProperty>
Called from 1
Calls 2
  • method-call ReflectionClass::getProperties() line 76
  • new ReflectionClass line 76
public function describe(UnitEnum|string|int|float|bool $value): string

Describes a compared scalar or enum case in a failure message.

Parameters

$valueUnitEnum|string|int|float|bool

Returns

string
Called from 1
Calls 1

Private surface 1§

Implementation details, listed for orientation only.

private array<class-string, list<ReflectionProperty>> $properties = []

Test cases 2§

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

Other tests reaching this symbol 2

Relations§

Instantiated in 5
Method calls 5