Completed
Push — master ( 3af5ad...f60e47 )
by Sandro
10s
created

ConnectionDefaultOptionsMandatoryContainetIdConfiguration   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 24
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A dimensions() 0 4 1
A mandatoryOptions() 0 4 1
A defaultOptions() 0 9 1
1
<?php
2
/**
3
 * Sandro Keil (https://sandro-keil.de)
4
 *
5
 * @link      http://github.com/sandrokeil/interop-config for the canonical source repository
6
 * @copyright Copyright (c) 2015-2016 Sandro Keil
7
 * @license   http://github.com/sandrokeil/interop-config/blob/master/LICENSE.md New BSD License
8
 */
9
10
declare(strict_types = 1);
11
12
namespace InteropTest\Config\TestAsset;
13
14
use Interop\Config\ConfigurationTrait;
15
use Interop\Config\ProvidesDefaultOptions;
16
use Interop\Config\RequiresConfigId;
17
use Interop\Config\RequiresMandatoryOptions;
18
19
class ConnectionDefaultOptionsMandatoryContainetIdConfiguration implements RequiresConfigId, RequiresMandatoryOptions, ProvidesDefaultOptions
20
{
21
    use ConfigurationTrait;
22
23
    public function dimensions(): iterable
24
    {
25
        return ['doctrine', 'connection'];
26
    }
27
28
    public function mandatoryOptions(): iterable
29
    {
30
        return ['driverClass'];
31
    }
32
33
    public function defaultOptions(): array
34
    {
35
        return [
36
            'params' => [
37
                'host' => 'awesomehost',
38
                'port' => '4444',
39
            ],
40
        ];
41
    }
42
}
43