Total Complexity | 1 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
21 | abstract class AbstractComponentProvider extends ServiceProvider |
||
22 | { |
||
23 | /** |
||
24 | * Registers the component on the application. |
||
25 | * |
||
26 | * Should adapt the service to the console/cli context. |
||
27 | * |
||
28 | * @return void |
||
29 | */ |
||
30 | public function register(): void |
||
32 | // .. |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * Checks if the component is available. |
||
37 | * |
||
38 | * @return bool |
||
39 | */ |
||
40 | abstract public function isAvailable(): bool; |
||
41 | } |
||
42 |