| 1 | <?php |
||
| 9 | class Select implements Snippet |
||
| 10 | { |
||
| 11 | private |
||
| 12 | $columns; |
||
|
1 ignored issue
–
show
|
|||
| 13 | |||
| 14 | /** |
||
| 15 | * @param array[string|Selectable] | string|Selectable $columns |
||
| 16 | */ |
||
| 17 | 33 | public function __construct($columns = []) |
|
| 23 | |||
| 24 | /** |
||
| 25 | * @param array[string|Selectable] | string|Selectable $columns |
||
| 26 | */ |
||
| 27 | 28 | public function select($columns): self |
|
| 33 | |||
| 34 | 31 | public function toString(): string |
|
| 43 | |||
| 44 | 29 | private function buildColumnsString() |
|
| 60 | |||
| 61 | 33 | private function addColumns($columns): void |
|
| 69 | |||
| 70 | 33 | private function validateColumns($columns) |
|
| 80 | |||
| 81 | 33 | private function ensureIsArray($select): array |
|
| 90 | } |
||
| 91 |
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.