1 | <?php |
||
8 | class Builder extends BaseBuilder |
||
9 | { |
||
10 | /** |
||
11 | * Backup some fields for the pagination count. |
||
12 | * |
||
13 | * @return void |
||
14 | */ |
||
15 | protected function backupFieldsForCount() |
||
31 | |||
32 | /** |
||
33 | * Restore some fields after the pagination count. |
||
34 | * |
||
35 | * @return void |
||
36 | */ |
||
37 | protected function restoreFieldsForCount() |
||
49 | |||
50 | /** |
||
51 | * Run a pagination count query. |
||
52 | * |
||
53 | * @param array $columns |
||
54 | * @return array |
||
55 | */ |
||
56 | protected function runPaginationCountQuery($columns = ['*']) |
||
65 | } |
||
66 |
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: