1 | <?php |
||
20 | class Delete extends Common\Delete implements Common\OrderByInterface, Common\LimitOffsetInterface |
||
21 | { |
||
22 | use Common\LimitOffsetTrait; |
||
23 | |||
24 | 2 | protected function build() |
|
29 | |||
30 | /** |
||
31 | * |
||
32 | * Adds a column order to the query. |
||
33 | * |
||
34 | * @param array $spec The columns and direction to order by. |
||
35 | * |
||
36 | * @return $this |
||
37 | * |
||
38 | */ |
||
39 | 1 | public function orderBy(array $spec) |
|
43 | } |
||
44 |
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: