1 | <?php |
||
7 | trait DependencyResolverTrait |
||
8 | { |
||
9 | /** |
||
10 | * @return string |
||
11 | */ |
||
12 | protected function getModel(): string |
||
16 | |||
17 | /** |
||
18 | * @return string |
||
19 | */ |
||
20 | protected function getDatatable(): string |
||
24 | |||
25 | /** |
||
26 | * @return string |
||
27 | */ |
||
28 | protected function getStoreFormRequest(): string |
||
32 | |||
33 | /** |
||
34 | * @return string |
||
35 | */ |
||
36 | protected function getUpdateFormRequest(): string |
||
40 | |||
41 | /** |
||
42 | * @param Request $request |
||
43 | * @return mixed |
||
44 | */ |
||
45 | protected function getValidated(Request $request) |
||
51 | } |
||
52 |
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: