ExecuteResult   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 64
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 71.43%

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 64
ccs 10
cts 14
cp 0.7143
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A setDerived() 0 6 1
A getDerived() 0 4 1
A setRemoved() 0 6 1
A getRemoved() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the Conveyor package.
5
 *
6
 * (c) Jeroen Fiege <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Webcreate\Conveyor\Task\Result;
13
14
class ExecuteResult
15
{
16
    protected $derived;
17
    protected $removed;
18
19
    /**
20
     * Constructor.
21
     *
22
     * @param array $derived
23
     * @param array $removed
24
     */
25 3
    public function __construct(array $derived = array(), array $removed = array())
26
    {
27 3
        $this->setDerived($derived);
28 3
        $this->setRemoved($removed);
29 3
    }
30
31
    /**
32
     * Sets derived files
33
     *
34
     * @param  array                                         $derived
35
     * @return \Webcreate\Conveyor\Task\Result\ExecuteResult
36
     */
37 3
    public function setDerived(array $derived)
38
    {
39 3
        $this->derived = $derived;
40
41 3
        return $this;
42
    }
43
44
    /**
45
     * Gets derived files
46
     *
47
     * @return array
48
     */
49
    public function getDerived()
50
    {
51
        return $this->derived;
52
    }
53
54
    /**
55
     * Sets removed files
56
     *
57
     * @param  array                                         $removed
58
     * @return \Webcreate\Conveyor\Task\Result\ExecuteResult
59
     */
60 3
    public function setRemoved(array $removed)
61
    {
62 3
        $this->removed = $removed;
63
64 3
        return $this;
65
    }
66
67
    /**
68
     * Gets removed files
69
     *
70
     * @return array
71
     */
72
    public function getRemoved()
73
    {
74
        return $this->removed;
75
    }
76
77
}
78