| Total Complexity | 3 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 75% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class ConfigurationResolver implements ConfigurationResolverInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var ContainerInterface |
||
| 17 | */ |
||
| 18 | private $container; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | private $id; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * ConfigurationResolver constructor. |
||
| 27 | * |
||
| 28 | * @param ContainerInterface $container |
||
| 29 | * @param string $id |
||
| 30 | */ |
||
| 31 | 10 | public function __construct(ContainerInterface $container, string $id = 'prime.%s_connection.configuration') |
|
| 35 | 10 | } |
|
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritDoc} |
||
| 39 | */ |
||
| 40 | 8 | public function getConfiguration(string $connectionName): ?Configuration |
|
| 49 | } |
||
| 50 | } |