1 | <?php |
||
30 | abstract class Module |
||
31 | { |
||
32 | /** |
||
33 | * Gets the module metadata. |
||
34 | * |
||
35 | * This array should contain at the very least the keys `name`, `version`, |
||
36 | * and `description`. Feel free to add any additional fields you like, such |
||
37 | * as `author`, `license`, or `copyright`. |
||
38 | * |
||
39 | * @return array<string,string> An associative array of the module metadata |
||
40 | */ |
||
41 | 1 | public function getMeta(): array |
|
45 | |||
46 | /** |
||
47 | * Gets static configuration settings. |
||
48 | * |
||
49 | * @return array<string,mixed> The module configuration settings |
||
50 | */ |
||
51 | 2 | public function getConfig(): array |
|
55 | |||
56 | /** |
||
57 | * Allows the module to register classes in the backend container. |
||
58 | * |
||
59 | * This method must only invoke the `eager`, `lazy`, and `proto` methods. It |
||
60 | * should *not* attempt to build the container. |
||
61 | * |
||
62 | * @param \Caridea\Container\Builder $builder The backend dependency injection container builder |
||
63 | * @param \Caridea\Container\Properties $properties The configuration settings |
||
64 | * @return void |
||
65 | */ |
||
66 | 1 | public function setupBackend(Builder $builder, Properties $properties) |
|
69 | |||
70 | /** |
||
71 | * Allows the module to register classes in the frontend container. |
||
72 | * |
||
73 | * This method must only invoke the `eager`, `lazy`, and `proto` methods. It |
||
74 | * should *not* attempt to build the container. |
||
75 | * |
||
76 | * @param \Caridea\Container\Builder $builder The frontend dependency injection container builder |
||
77 | * @param \Caridea\Container\Properties $properties The configuration settings |
||
78 | * @return void |
||
79 | */ |
||
80 | 1 | public function setupFrontend(Builder $builder, Properties $properties) |
|
83 | } |
||
84 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.