1 | <?php |
||
11 | class FractalServiceProvider extends ServiceProvider |
||
12 | { |
||
13 | /** |
||
14 | * Indicates if loading of the provider is deferred. |
||
15 | * |
||
16 | * @var bool |
||
17 | */ |
||
18 | protected $defer = false; |
||
19 | |||
20 | /** |
||
21 | * Bootstrap the application events. |
||
22 | * |
||
23 | * @return void |
||
24 | */ |
||
25 | public function boot() |
||
32 | |||
33 | /** |
||
34 | * Publish datatables assets. |
||
35 | * |
||
36 | * @return void |
||
37 | */ |
||
38 | protected function publishAssets() |
||
46 | |||
47 | /** |
||
48 | * Register DataTables macro methods. |
||
49 | * |
||
50 | * @return void |
||
51 | */ |
||
52 | protected function registerMacro() |
||
78 | |||
79 | /** |
||
80 | * Register the service provider. |
||
81 | * |
||
82 | * @return void |
||
83 | */ |
||
84 | public function register() |
||
116 | |||
117 | /** |
||
118 | * Get the services provided by the provider. |
||
119 | * |
||
120 | * @return array |
||
121 | */ |
||
122 | public function provides() |
||
129 | } |
||
130 |
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: