ComparableValues
Read onlyYes
FinalYes
Methods
- equalByPhysical() : bool
- equalities() : array<int, mixed>
- Element physicals carry their owner document, so elements, and lists of them, compare by their own markup.
- equality() : array<int, mixed>
- NaN is the one float not === to itself: it becomes the string 'NaN', so NaN equals NaN.
- instants() : array<int, int|null>
- A date's physical days on a datetime's microsecond scale, so a date and a datetime at the same instant compare and hash equal.
- ordering() : array<int, mixed>
- orderings() : array{list, list}
Methods
equalByPhysical()
public
equalByPhysical(Type<string|int, mixed> $type) : bool
Parameters
- $type : Type<string|int, mixed>
Return values
boolequalities()
Element physicals carry their owner document, so elements, and lists of them, compare by their own markup.
public
equalities(Type<string|int, mixed> $type, array<int, mixed> $physicals) : array<int, mixed>
Parameters
- $type : Type<string|int, mixed>
- $physicals : array<int, mixed>
Return values
array<int, mixed> —=== on these is value equality
equality()
NaN is the one float not === to itself: it becomes the string 'NaN', so NaN equals NaN.
public
equality(Column $column) : array<int, mixed>
Parameters
- $column : Column
Return values
array<int, mixed> —=== on these is value equality
instants()
A date's physical days on a datetime's microsecond scale, so a date and a datetime at the same instant compare and hash equal.
public
instants(array<int, mixed> $days) : array<int, int|null>
Parameters
- $days : array<int, mixed>
Return values
array<int, int|null>ordering()
public
ordering(Column $column) : array<int, mixed>
Parameters
- $column : Column
Return values
array<int, mixed> —PHP <, <=, <=> on these order the values; uuid, json, enum, xml and html by their physical bytes
orderings()
public
orderings(Column $first, Column $second) : array{list, list}