| Total Complexity | 3 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | class DoctrinePluginConfiguration extends PluginConfiguration implements DoctrinePluginConfigurationInterface |
||
| 21 | { |
||
| 22 | public const CFG_CONNECTIONS = 'ORM_CONNECTION_LIST'; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * {@inheritDoc} |
||
| 26 | */ |
||
| 27 | 1 | public function getConnectionList(): array |
|
| 28 | { |
||
| 29 | 1 | return $this->explodeStringToArray( |
|
| 30 | 1 | $this->configuration->get(self::CFG_CONNECTIONS, self::MANAGER_DEFAULT) |
|
| 31 | 1 | ); |
|
| 32 | } |
||
| 33 | |||
| 34 | 2 | public function getManagerConfiguration(string $connectionName): EntityManagerConfigurationInterface |
|
| 35 | { |
||
| 36 | 2 | return new EntityManagerConfiguration($this->configuration, $connectionName); |
|
| 37 | } |
||
| 38 | |||
| 39 | 3 | public function isDevMode(): bool |
|
| 42 | } |
||
| 43 | } |
||
| 44 |