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

dimensions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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\RequiresConfig;
17
use Interop\Config\RequiresMandatoryOptions;
18
19
class ConnectionDefaultOptionsMandatoryConfiguration implements RequiresConfig, RequiresMandatoryOptions, ProvidesDefaultOptions
20
{
21
    use ConfigurationTrait;
22
23
    public function dimensions(): iterable
24
    {
25
        return ['doctrine', 'connection', 'orm_default'];
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