Total Complexity | 7 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | final class CycleDependencyPromise |
||
16 | { |
||
17 | private ContainerInterface $container; |
||
18 | public function __construct(ContainerInterface $container) |
||
19 | { |
||
20 | $this->container = $container; |
||
21 | } |
||
22 | public function getDatabaseManager(): DatabaseManager |
||
25 | } |
||
26 | public function getMigrationConfig(): MigrationConfig |
||
29 | } |
||
30 | public function getMigrator(): Migrator |
||
31 | { |
||
32 | return $this->container->get(Migrator::class); |
||
33 | } |
||
34 | /** |
||
35 | * Can be used in other packages |
||
36 | */ |
||
37 | public function getORM(): ORMInterface |
||
38 | { |
||
39 | return $this->container->get(ORMInterface::class); |
||
40 | } |
||
41 | public function getSchema(): SchemaInterface |
||
44 | } |
||
45 | public function getSchemaConveyor(): SchemaConveyorInterface |
||
48 | } |
||
49 | } |
||
50 |