ConfigurableTestPlugin::getAlreadyList()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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