| 1 | <?php |
||
| 20 | class Delete extends Common\Delete implements Common\OrderByInterface, Common\LimitInterface |
||
| 21 | { |
||
| 22 | use Common\LimitTrait; |
||
| 23 | |||
| 24 | 5 | protected function build() |
|
| 29 | |||
| 30 | /** |
||
| 31 | * |
||
| 32 | * Adds or removes LOW_PRIORITY flag. |
||
| 33 | * |
||
| 34 | * @param bool $enable Set or unset flag (default true). |
||
| 35 | * |
||
| 36 | * @return $this |
||
| 37 | * |
||
| 38 | */ |
||
| 39 | 1 | public function lowPriority($enable = true) |
|
| 44 | |||
| 45 | /** |
||
| 46 | * |
||
| 47 | * Adds or removes IGNORE flag. |
||
| 48 | * |
||
| 49 | * @param bool $enable Set or unset flag (default true). |
||
| 50 | * |
||
| 51 | * @return $this |
||
| 52 | * |
||
| 53 | */ |
||
| 54 | 1 | public function ignore($enable = true) |
|
| 59 | |||
| 60 | /** |
||
| 61 | * |
||
| 62 | * Adds or removes QUICK flag. |
||
| 63 | * |
||
| 64 | * @param bool $enable Set or unset flag (default true). |
||
| 65 | * |
||
| 66 | * @return $this |
||
| 67 | * |
||
| 68 | */ |
||
| 69 | 1 | public function quick($enable = true) |
|
| 74 | |||
| 75 | /** |
||
| 76 | * |
||
| 77 | * Adds a column order to the query. |
||
| 78 | * |
||
| 79 | * @param array $spec The columns and direction to order by. |
||
| 80 | * |
||
| 81 | * @return $this |
||
| 82 | * |
||
| 83 | */ |
||
| 84 | 1 | public function orderBy(array $spec) |
|
| 88 | } |
||
| 89 |
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: