InstallationNode::getSteps()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * AppserverIo\Provisioning\Api\Node\InstallationNode
5
 *
6
 * NOTICE OF LICENSE
7
 *
8
 * This source file is subject to the Open Software License (OSL 3.0)
9
 * that is available through the world-wide-web at this URL:
10
 * http://opensource.org/licenses/osl-3.0.php
11
 *
12
 * PHP version 5
13
 *
14
 * @author    Tim Wagner <[email protected]>
15
 * @copyright 2018 TechDivision GmbH <[email protected]>
16
 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
17
 * @link      https://github.com/appserver-io/provisioning
18
 * @link      http://www.appserver.io
19
 */
20
21
namespace AppserverIo\Provisioning\Api\Node;
22
23
use AppserverIo\Description\Annotations as DI;
24
use AppserverIo\Description\Api\Node\AbstractNode;
25
26
/**
27
 * DTO to transfer a the installation information.
28
 *
29
 * @author    Tim Wagner <[email protected]>
30
 * @copyright 2018 TechDivision GmbH <[email protected]>
31
 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
32
 * @link      https://github.com/appserver-io/provisioning
33
 * @link      http://www.appserver.io
34
 */
35
class InstallationNode extends AbstractNode
36
{
37
38
    /**
39
     * The installation steps.
40
     *
41
     * @var array
42
     * @DI\Mapping(nodeName="steps/step", nodeType="array", elementType="AppserverIo\Provisioning\Api\Node\StepNode")
43
     */
44
    protected $steps;
45
46
    /**
47
     * Sets the installation steps.
48
     *
49
     * @param array $steps The installation steps
50
     *
51
     * @return void
52
     */
53
    public function setSteps(array $steps)
54
    {
55
        $this->steps = $steps;
56
    }
57
58
    /**
59
     * Returns the installation step.
60
     *
61
     * @return array
62
     */
63
    public function getSteps()
64
    {
65
        return $this->steps;
66
    }
67
}
68