final class ColumnRef

One end of a relation: a table and the columns of it that take part.

Written order.id, or order.(shop_id, no) for a composite key, following the reference syntax of DBML.

Properties§

public string $table
public list<string> $columns

Methods§

public function __construct(public string $table, public list<string> $columns)
public static function of(string $table, string ...$columns): self

Returns of.

Parameters

$tablestring
$columnsstring

Returns

self
Test cases 33
Calls 2
public static function from(string $reference): self
public function isComposite(): bool

Returns is composite.

Returns

bool
Called from 1
Calls 1
public function equals(self $other): bool

Whether both ends name the same table and columns.

Parameters

$otherself

Returns

bool
public function __toString(): string

Returns the canonical textual representation.

Returns

string
Calls 1

Test cases 64§

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

Dedicated tests 15
Other tests reaching this symbol 49

Relations§

Instantiated in 2
Static calls 6
Method calls 7
Type checks 6
Type declarations 28