| 1 | <?php |
||
| 9 | trait Join |
||
| 10 | { |
||
| 11 | protected |
||
| 12 | $joins = array(); |
||
|
1 ignored issue
–
show
|
|||
| 13 | |||
| 14 | 5 | public function innerJoin(string $table, ?string $alias = null): self |
|
| 20 | |||
| 21 | 4 | public function leftJoin(string $table, ?string $alias = null): self |
|
| 27 | |||
| 28 | 4 | public function rightJoin(string $table, ?string $alias = null): self |
|
| 34 | |||
| 35 | 10 | public function on(string $leftColumn, string $rightColumn): self |
|
| 42 | |||
| 43 | /** |
||
| 44 | * @param array[string]|string $column |
||
| 45 | */ |
||
| 46 | 2 | public function using($column): self |
|
| 53 | |||
| 54 | 30 | protected function buildJoin(): string |
|
| 65 | |||
| 66 | 10 | private function getLastJoin(): Snippets\Join |
|
| 77 | } |
||
| 78 |
The PSR-2 coding standard requires that all properties in a class have their visibility explicitly declared. If you declare a property using
the property is implicitly global.
To learn more about the PSR-2, please see the PHP-FIG site on the PSR-2.