| 1 | <?php |
||
| 6 | class UpdateBuilder extends AbstractBuilder |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * |
||
| 10 | * Builds the table clause. |
||
| 11 | * |
||
| 12 | * @return null |
||
| 13 | * |
||
| 14 | */ |
||
| 15 | 16 | public function buildTable($table) |
|
| 20 | |||
| 21 | /** |
||
| 22 | * |
||
| 23 | * Builds the updated columns and values of the statement. |
||
| 24 | * |
||
| 25 | * @return string |
||
| 26 | * |
||
| 27 | */ |
||
| 28 | 16 | public function buildValuesForUpdate($col_values) |
|
| 41 | } |
||
| 42 |
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: