| Total Complexity | 7 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | final class CycleDependencyProxy |
||
| 16 | { |
||
| 17 | private ContainerInterface $container; |
||
| 18 | public function __construct(ContainerInterface $container) |
||
| 19 | { |
||
| 20 | $this->container = $container; |
||
| 21 | } |
||
| 22 | public function getDatabaseManager(): DatabaseManager |
||
| 23 | { |
||
| 24 | return $this->container->get(DatabaseManager::class); |
||
| 25 | } |
||
| 26 | public function getMigrationConfig(): MigrationConfig |
||
| 27 | { |
||
| 28 | return $this->container->get(MigrationConfig::class); |
||
| 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 |
||
| 40 | } |
||
| 41 | public function getSchema(): SchemaInterface |
||
| 42 | { |
||
| 43 | return $this->container->get(SchemaInterface::class); |
||
| 44 | } |
||
| 45 | public function getSchemaConveyor(): SchemaConveyorInterface |
||
| 48 | } |
||
| 49 | } |
||
| 50 |