PostDispatchDeploymentEvent   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 37
ccs 0
cts 12
cp 0
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getDeployDefinition() 0 3 1
A isSuccess() 0 3 1
A __construct() 0 4 1
1
<?php
2
3
namespace Deployee\Plugins\Deploy\Events;
4
5
6
7
use Deployee\Plugins\Deploy\Definitions\Deploy\DeployDefinitionInterface;
8
use Symfony\Component\EventDispatcher\Event;
9
10
class PostDispatchDeploymentEvent extends Event
11
{
12
    /**
13
     * @var DeployDefinitionInterface
14
     */
15
    private $deployDefinition;
16
17
    /**
18
     * @var bool
19
     */
20
    private $success;
21
22
    /**
23
     * PostDispatchDeploymentEvent constructor.
24
     * @param DeployDefinitionInterface $deployDefinition
25
     * @param bool $success
26
     */
27
    public function __construct(DeployDefinitionInterface $deployDefinition, bool $success)
28
    {
29
        $this->deployDefinition = $deployDefinition;
30
        $this->success = $success;
31
    }
32
33
    /**
34
     * @return DeployDefinitionInterface
35
     */
36
    public function getDeployDefinition(): DeployDefinitionInterface
37
    {
38
        return $this->deployDefinition;
39
    }
40
41
    /**
42
     * @return bool
43
     */
44
    public function isSuccess(): bool
45
    {
46
        return $this->success;
47
    }
48
}