1 | <?php |
||
20 | class Delete extends Common\Delete implements Common\ReturningInterface |
||
21 | { |
||
22 | 2 | protected function build() |
|
27 | |||
28 | /** |
||
29 | * |
||
30 | * Adds returning columns to the query. |
||
31 | * |
||
32 | * Multiple calls to returning() will append to the list of columns, not |
||
33 | * overwrite the previous columns. |
||
34 | * |
||
35 | * @param array $cols The column(s) to add to the query. |
||
36 | * |
||
37 | * @return $this |
||
38 | * |
||
39 | */ |
||
40 | 1 | public function returning(array $cols) |
|
44 | } |
||
45 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: