Passed
Push — master ( 53821d...e70153 )
by Phillip
03:50
created

AbstractShopwareDispatcher   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 6
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getEnvironmentConsoleParameter() 0 4 1
1
<?php
2
3
4
namespace Deployee\Plugins\ShopwareTasks\Dispatcher;
5
6
7
use Deployee\Plugins\Deploy\Definitions\Tasks\TaskDefinitionInterface;
8
use Deployee\Plugins\Deploy\Dispatcher\AbstractTaskDefinitionDispatcher;
9
10
abstract class AbstractShopwareDispatcher extends AbstractTaskDefinitionDispatcher
11
{
12
    protected function getEnvironmentConsoleParameter(TaskDefinitionInterface $taskDefinition): string
13
    {
14
        $params = $taskDefinition->define();
15
        return sprintf('--env=%s', $params->get('env'));
16
    }
17
}