Total Complexity | 5 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
12 | class Configuration extends BaseConfiguration |
||
13 | { |
||
14 | /** |
||
15 | * Set configuration |
||
16 | * |
||
17 | * @param array $options |
||
18 | */ |
||
19 | public function __construct(array $options = []) |
||
|
|||
20 | { |
||
21 | 208 | $this->_attributes = $options + [ |
|
22 | 'sqlLogger' => isset($options['logger']) ? $options['logger'] : null, |
||
23 | 208 | ]; |
|
24 | 208 | ||
25 | unset($this->_attributes['logger']); |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * Set common type registry |
||
30 | 208 | * |
|
31 | 208 | * @param TypesRegistryInterface $types |
|
32 | */ |
||
33 | public function setTypes(TypesRegistryInterface $types) |
||
34 | { |
||
35 | $this->_attributes['types'] = $types; |
||
36 | } |
||
37 | |||
38 | 1 | /** |
|
39 | * Get common types registry |
||
40 | 1 | * |
|
41 | 1 | * @return TypesRegistryInterface |
|
42 | */ |
||
43 | public function getTypes() |
||
50 | } |
||
51 | } |
||
52 |