Total Complexity | 9 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | trait HasManagers |
||
12 | { |
||
13 | protected ?AdminManager $adminManager = null; |
||
14 | |||
15 | protected ?MonitorManager $monitorManager = null; |
||
16 | |||
17 | protected ?SchemaManager $schemaManager = null; |
||
18 | |||
19 | public function admin(): AdminManager |
||
26 | } |
||
27 | |||
28 | public function monitor(): MonitorManager |
||
29 | { |
||
30 | if (!(property_exists($this, 'monitorManager') && $this->monitorManager !== null)) { |
||
31 | $this->monitorManager = new MonitorManager($this); |
||
32 | } |
||
33 | |||
34 | return $this->monitorManager; |
||
35 | } |
||
36 | |||
37 | public function schema(): SchemaManager |
||
44 | } |
||
45 | } |
||
46 |