| 1 | <?php |
||
| 12 | trait FixedColumns |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Set fixedColumns option value. |
||
| 16 | * |
||
| 17 | * @param bool|array $value |
||
| 18 | * @return $this |
||
| 19 | * @see https://datatables.net/reference/option/fixedColumns |
||
| 20 | */ |
||
| 21 | public function fixedColumns($value = true) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Set fixedColumns heightMatch option value. |
||
| 30 | * |
||
| 31 | * @param string $value |
||
| 32 | * @return $this |
||
| 33 | * @see https://datatables.net/reference/option/fixedColumns.heightMatch |
||
| 34 | */ |
||
| 35 | public function fixedColumnsHeightMatch($value = 'semiauto') |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Set fixedColumns leftColumns option value. |
||
| 44 | * |
||
| 45 | * @param int $value |
||
| 46 | * @return $this |
||
| 47 | * @see https://datatables.net/reference/option/fixedColumns.leftColumns |
||
| 48 | */ |
||
| 49 | public function fixedColumnsLeftColumns(int $value = 1) |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Set fixedColumns rightColumns option value. |
||
| 58 | * |
||
| 59 | * @param int $value |
||
| 60 | * @return $this |
||
| 61 | * @see https://datatables.net/reference/option/fixedColumns.rightColumns |
||
| 62 | */ |
||
| 63 | public function fixedColumnsRightColumns(int $value = 0) |
||
| 69 | } |
||
| 70 |
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: