Total Complexity | 6 |
Total Lines | 68 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
24 | abstract class Component |
||
25 | { |
||
26 | /** |
||
27 | * Get the component's container aliases. |
||
28 | * |
||
29 | * @return class-string[] |
||
|
|||
30 | */ |
||
31 | public static function getContainerAliases(): array |
||
32 | { |
||
33 | return []; |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * Get the component's container services. |
||
38 | * |
||
39 | * @return class-string<Service>[] |
||
40 | */ |
||
41 | public static function getContainerServices(): array |
||
42 | { |
||
43 | return []; |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * Get the component's container service providers. |
||
48 | * |
||
49 | * @return class-string<ContainerProvider>[] |
||
50 | */ |
||
51 | public static function getContainerProviders(): array |
||
52 | { |
||
53 | return []; |
||
54 | } |
||
55 | |||
56 | /** |
||
57 | * Get the component's event listeners. |
||
58 | * |
||
59 | * @return class-string[] |
||
60 | */ |
||
61 | public static function getEventListeners(): array |
||
64 | } |
||
65 | |||
66 | /** |
||
67 | * Get the component's cli controllers. |
||
68 | * |
||
69 | * @return class-string[] |
||
70 | */ |
||
71 | public static function getCliControllers(): array |
||
72 | { |
||
73 | return []; |
||
74 | } |
||
75 | |||
76 | /** |
||
77 | * Get the component's http controllers. |
||
78 | * |
||
79 | * @return class-string[] |
||
80 | */ |
||
81 | public static function getHttpControllers(): array |
||
84 | } |
||
85 | |||
86 | /** |
||
87 | * Get the component's name. |
||
88 | * |
||
89 | * @return non-empty-string |
||
90 | */ |
||
91 | abstract public static function getName(): string; |
||
92 | } |
||
93 |