PluginConfigSetDefinition   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 7
c 2
b 0
f 0
dl 0
loc 33
ccs 0
cts 5
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A define() 0 3 1
1
<?php
2
3
4
namespace Deployee\Plugins\ShopwareTasks\Definitions;
5
6
7
use Deployee\Plugins\Deploy\Definitions\Parameter\ParameterCollection;
8
use Deployee\Plugins\Deploy\Definitions\Parameter\ParameterCollectionInterface;
9
10
class PluginConfigSetDefinition extends AbstractShopwareDefinition
11
{
12
    /**
13
     * @var string
14
     */
15
    protected $plugin;
16
17
    /**
18
     * @var string
19
     */
20
    protected $key;
21
22
    /**
23
     * @var mixed
24
     */
25
    protected $value;
26
27
    /**
28
     * @param string $key
29
     * @param mixed $value
30
     */
31
    public function __construct(string $key, $value)
32
    {
33
        $this->key = $key;
34
        $this->value = $value;
35
    }
36
37
    /**
38
     * @return ParameterCollectionInterface
39
     */
40
    public function define(): ParameterCollectionInterface
41
    {
42
        return new ParameterCollection(get_object_vars($this));
43
    }
44
}