1 | <?php |
||
10 | class FractalServiceProvider extends ServiceProvider |
||
11 | { |
||
12 | /** |
||
13 | * Indicates if loading of the provider is deferred. |
||
14 | * |
||
15 | * @var bool |
||
16 | */ |
||
17 | protected $defer = false; |
||
18 | |||
19 | /** |
||
20 | * Bootstrap the application events. |
||
21 | * |
||
22 | * @return void |
||
23 | */ |
||
24 | public function boot() |
||
31 | |||
32 | /** |
||
33 | * Publish datatables assets. |
||
34 | */ |
||
35 | protected function publishAssets() |
||
41 | |||
42 | /** |
||
43 | * Register DataTables macro methods. |
||
44 | */ |
||
45 | protected function registerMacro() |
||
59 | |||
60 | /** |
||
61 | * Register the service provider. |
||
62 | * |
||
63 | * @return void |
||
64 | */ |
||
65 | public function register() |
||
87 | |||
88 | /** |
||
89 | * Get the services provided by the provider. |
||
90 | * |
||
91 | * @return array |
||
92 | */ |
||
93 | public function provides() |
||
100 | } |
||
101 |
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: