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

AbstractShopwareDefinition::env()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
ccs 0
cts 4
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
4
namespace Deployee\Plugins\ShopwareTasks\Definitions;
5
6
use Deployee\Plugins\Deploy\Definitions\Tasks\TaskDefinitionInterface;
7
8
abstract class AbstractShopwareDefinition implements TaskDefinitionInterface
9
{
10
    /**
11
     * @var string
12
     */
13
    protected $env = 'production';
14
15
    /**
16
     * @param string $env
17
     * @return $this
18
     */
19
    public function env(string $env)
20
    {
21
        $this->env = $env;
22
        return $this;
23
    }
24
}