| 1 | <?php |
||
| 11 | trait AutoFill |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Set autoFill option value. |
||
| 15 | * Enable and configure the AutoFill extension for DataTables. |
||
| 16 | * |
||
| 17 | * @param bool|array $value |
||
| 18 | * @return $this |
||
| 19 | * @see https://datatables.net/reference/option/autoFill |
||
| 20 | */ |
||
| 21 | public function autoFill($value = true) |
||
| 27 | } |
||
| 28 |
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: