Join
class Join
Table join.
Properties
protected string | $type | Join type. | |
protected string | $table | Table we are joining. | |
protected array | $conditions | ON conditions. |
Methods
__construct(string|null $type = null, mixed $table = null)
Constructor.
string
getType()
Returns the join type.
mixed
getTable()
Returns the table name.
array
getConditions()
Returns ON conditions.
onRaw(string $column1, string $operator, string $raw, string $separator = 'AND')
Adds a raw ON condition to the join.
orOn(string $column1, string|null $operator = null, string|Raw|null $column2 = null)
Adds a OR ON condition to the join.
Details
at line 46
__construct(string|null $type = null, mixed $table = null)
Constructor.
at line 57
string
getType()
Returns the join type.
at line 67
mixed
getTable()
Returns the table name.
at line 77
array
getConditions()
Returns ON conditions.
at line 91
Join
on(string $column1, string|null $operator = null, string|Raw|null $column2 = null, string $separator = 'AND')
Adds a ON condition to the join.
at line 130
Join
onRaw(string $column1, string $operator, string $raw, string $separator = 'AND')
Adds a raw ON condition to the join.
at line 143
Join
orOn(string $column1, string|null $operator = null, string|Raw|null $column2 = null)
Adds a OR ON condition to the join.
at line 156
Join
orOnRaw(string $column1, string $operator, string $raw)
Adds a raw OR ON condition to the join.