| 1 | <?php |
||
| 6 | class InsertBuilder extends AbstractBuilder |
||
| 7 | { |
||
| 8 | |||
| 9 | /** |
||
| 10 | * |
||
| 11 | * Builds the INTO clause. |
||
| 12 | * |
||
| 13 | * @return string |
||
| 14 | * |
||
| 15 | */ |
||
| 16 | 42 | public function buildInto($into) |
|
| 21 | |||
| 22 | /** |
||
| 23 | * |
||
| 24 | * Builds the inserted columns and values of the statement. |
||
| 25 | * |
||
| 26 | * @return string |
||
| 27 | * |
||
| 28 | */ |
||
| 29 | 22 | public function buildValuesForInsert($col_values) |
|
| 48 | |||
| 49 | /** |
||
| 50 | * |
||
| 51 | * Builds the bulk-inserted columns and values of the statement. |
||
| 52 | * |
||
| 53 | * @return string |
||
| 54 | * |
||
| 55 | */ |
||
| 56 | 20 | public function buildValuesForBulkInsert($col_order, $col_values_bulk) |
|
| 73 | } |
||
| 74 |
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: