AbstractStep::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
/**
3
 *  base class to gather basic information for a step.
4
 */
5
6
namespace Graviton\Deployment\Steps\CloudFoundry;
7
8
use Graviton\Deployment\Steps\StepInterface;
9
10
/**
11
 * @author   List of contributors <https://github.com/libgraviton/deploy-scripts/graphs/contributors>
12
 * @license  http://opensource.org/licenses/gpl-license.php GNU Public License
13
 * @link     http://swisscom.ch
14
 */
15
abstract class AbstractStep implements StepInterface
16
{
17
    /** @var array Current application configuration.*/
18
    protected $configuration;
19
20
21
    /**
22
     * @param array $configuration Current application configuration.
23
     */
24 27
    public function __construct(array $configuration)
25
    {
26 27
        $this->configuration = $configuration;
27 27
    }
28
}
29