| Total Complexity | 5 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class ModuleManager extends AbstractSystem |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var \BFW\Install\ModuleManager |
||
| 12 | */ |
||
| 13 | protected $manager; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Initialize the ModuleManager system |
||
| 17 | */ |
||
| 18 | public function __construct() |
||
| 19 | { |
||
| 20 | $this->manager = new Manager; |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * {@inheritdoc} |
||
| 25 | * |
||
| 26 | * @return $this |
||
| 27 | */ |
||
| 28 | public function __invoke() |
||
| 29 | { |
||
| 30 | return $this->manager; |
||
|
|
|||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Getter accessor to property manager |
||
| 35 | * |
||
| 36 | * @return \BFW\Install\ModuleManager |
||
| 37 | */ |
||
| 38 | public function getManager(): Manager |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * {@inheritdoc} |
||
| 45 | */ |
||
| 46 | public function toRun(): bool |
||
| 47 | { |
||
| 48 | return true; |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * {@inheritdoc} |
||
| 53 | * Run install of all modules |
||
| 54 | */ |
||
| 55 | public function run() |
||
| 59 | } |
||
| 60 | } |
||
| 61 |