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

Groups relations by their printable left endpoint and operator.

Methods§

public function group(list<Relation> $relations): array<string, list<Relation>>
public function groupKey(Relation $relation): string

Relations group when they would print the same left end and operator, which is exactly when the shorthand can fold them together.

Parameters

$relationRelation

Returns

string
Test cases 1
Called from 2
Calls 1
public function operator(Relation $relation): string

Formats the relation operator with its optional endpoint markers.

Parameters

$relationRelation

Returns

string
Test cases 1
Called from 1

Test cases 33§

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

Dedicated tests 3
Other tests reaching this symbol 30

Relations§

Instantiated in 2
Method calls 2