ConfigurableTestPlugin   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 30
rs 10
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getConfigRoutingKeyValue() 0 3 1
A getList() 0 3 1
A getListWithoutSeparator() 0 3 1
A getEnv() 0 3 1
A getAlreadyList() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 *  This file is part of the Micro framework package.
7
 *
8
 *  (c) Stanislau Komar <[email protected]>
9
 *
10
 *  For the full copyright and license information, please view the LICENSE
11
 *  file that was distributed with this source code.
12
 */
13
14
namespace Micro\Framework\Kernel\Test\Unit;
15
16
use Micro\Framework\Kernel\Plugin\ConfigurableInterface;
17
use Micro\Framework\Kernel\Plugin\PluginConfigurationTrait;
18
19
/**
20
 * @author Stanislau Komar <[email protected]>
21
 *
22
 * @method ConfigurableTestPluginConfiguration configuration()
23
 */
24
class ConfigurableTestPlugin implements ConfigurableInterface
25
{
26
    use PluginConfigurationTrait;
27
28
    public function getEnv(): string
29
    {
30
        return $this->configuration()->getEnv();
31
    }
32
33
    /**
34
     * @return string[]
35
     */
36
    public function getList(): array
37
    {
38
        return $this->configuration()->getList();
39
    }
40
41
    public function getAlreadyList(): array
42
    {
43
        return $this->configuration()->getAlreadyList();
44
    }
45
46
    public function getListWithoutSeparator(): array
47
    {
48
        return $this->configuration()->getListWithoutSeparator();
49
    }
50
51
    public function getConfigRoutingKeyValue(): string
52
    {
53
        return $this->configuration()->getRoutingKeyConfig()->testTestValueString();
54
    }
55
}
56