| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 71.43% |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 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 | 12 | public function __construct(ContainerInterface $container, string $id = 'prime.%s_connection.configuration') |
|
| 29 | { |
||
| 30 | 12 | $this->container = $container; |
|
| 31 | 12 | $this->id = $id; |
|
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritDoc} |
||
| 36 | */ |
||
| 37 | 10 | public function getConfiguration(string $connectionName): ?Configuration |
|
| 45 | } |
||
| 46 | } |
||
| 47 |