Completed
Push — master ( bca71a...3af5ad )
by Sandro
06:14 queued 02:11
created

PackageDefaultOptionsConfiguration::dimensions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 4
rs 10
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
namespace InteropTest\Config\TestAsset;
11
12
use Interop\Config\ConfigurationTrait;
13
use Interop\Config\ProvidesDefaultOptions;
14
use Interop\Config\RequiresConfig;
15
16
class PackageDefaultOptionsConfiguration implements RequiresConfig, ProvidesDefaultOptions
17
{
18
    use ConfigurationTrait;
19
20
    /**
21
     * @interitdoc
22
     */
23
    public function dimensions()
24
    {
25
        return ['vendor', 'package'];
26
    }
27
28
    /**
29
     * @interitdoc
30
     */
31
    public function defaultOptions()
32
    {
33
        return [
34
            'minLength' => 2,
35
            'maxLength' => 10
36
        ];
37
    }
38
}
39