DeployContainer   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 68
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 5
lcom 0
cbo 1
dl 0
loc 68
ccs 14
cts 14
cp 1
rs 10
c 1
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getContainerName() 0 4 1
A getContainerScript() 0 4 1
A getContainerVersion() 0 4 1
A getContainerAlternative() 0 4 1
1
<?php
2
3
/**
4
* This file is part of the Meup TagCommander Bundle.
5
*
6
* (c) 1001pharmacies <http://github.com/1001pharmacies/tagcommander-bundle>
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 Meup\Bundle\TagcommanderBundle\EventDispatcher\Event;
13
14
use Symfony\Component\EventDispatcher\Event;
15
16
/**
17
 *
18
 */
19
class DeployContainer extends Event
20
{
21
    /**
22
     * @var string
23
     */
24
    protected $name;
25
26
    /**
27
     * @var string
28
     */
29
    protected $script;
30
31
    /**
32
     * @var string|null
33
     */
34
    protected $version;
35
36
    /**
37
     * @var string|null
38
     */
39
    protected $alternative;
40
41
    /**
42
     * @param string $name
43
     * @param string $script
44
     * @param string|null $version
45
     * @param string|null $alternative
46
     */
47 3
    public function __construct($name, $script, $version = null, $alternative = null)
48
    {
49 3
        $this->name        = $name;
50 3
        $this->script      = $script;
51 3
        $this->version     = $version;
52 3
        $this->alternative = $alternative;
53 3
    }
54
55
    /**
56
     * @return string
57
     */
58 2
    public function getContainerName()
59
    {
60 2
        return $this->name;
61
    }
62
63
    /**
64
     * @return string
65
     */
66 2
    public function getContainerScript()
67
    {
68 2
        return $this->script;
69
    }
70
71
    /**
72
     * @return string|null
73
     */
74 2
    public function getContainerVersion()
75
    {
76 2
        return $this->version;
77
    }
78
79
    /**
80
     * @return string|null
81
     */
82 2
    public function getContainerAlternative()
83
    {
84 2
        return $this->alternative;
85
    }
86
}
87