1 | <?php |
||
5 | trait Paginate |
||
6 | { |
||
7 | /** |
||
8 | * Set language aria paginate option value. |
||
9 | * |
||
10 | * @param array $value |
||
11 | * @return $this |
||
12 | * @see https://datatables.net/reference/option/language.paginate |
||
13 | */ |
||
14 | public function languagePaginate(array $value) |
||
20 | |||
21 | /** |
||
22 | * Set language aria paginate first option value. |
||
23 | * |
||
24 | * @param string $value |
||
25 | * @return $this |
||
26 | * @see https://datatables.net/reference/option/language.paginate.first |
||
27 | */ |
||
28 | public function languagePaginateFirst($value) |
||
34 | |||
35 | /** |
||
36 | * Set language aria paginate last option value. |
||
37 | * |
||
38 | * @param string $value |
||
39 | * @return $this |
||
40 | * @see https://datatables.net/reference/option/language.paginate.last |
||
41 | */ |
||
42 | public function languagePaginateLast($value) |
||
48 | |||
49 | /** |
||
50 | * Set language aria paginate next option value. |
||
51 | * |
||
52 | * @param string $value |
||
53 | * @return $this |
||
54 | * @see https://datatables.net/reference/option/language.paginate.next |
||
55 | */ |
||
56 | public function languagePaginateNext($value) |
||
62 | |||
63 | /** |
||
64 | * Set language aria paginate previous option value. |
||
65 | * |
||
66 | * @param string $value |
||
67 | * @return $this |
||
68 | * @see https://datatables.net/reference/option/language.paginate.previous |
||
69 | */ |
||
70 | public function languagePaginatePrevious($value) |
||
76 | } |
||
77 |
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: