Completed
Push — 3.0 ( f23b72...fb09f5 )
by Daniel
04:42
created

PackageDeployEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 25
ccs 0
cts 9
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getDeployEntry() 0 4 1
1
<?php
2
3
namespace MagentoHackathon\Composer\Magento\Event;
4
5
use Composer\EventDispatcher\Event;
6
use MagentoHackathon\Composer\Magento\Deploy\Manager\Entry;
7
8
/**
9
 * Class PackageDeployEvent
10
 * @package MagentoHackathon\Composer\Magento\Event
11
 * @author  Aydin Hassan <[email protected]>
12
 */
13
class PackageDeployEvent extends Event
14
{
15
    /**
16
     * @var Entry
17
     */
18
    protected $deployEntry;
19
20
    /**
21
     * @param string $name
22
     * @param Entry  $deployEntry
23
     */
24
    public function __construct($name, Entry $deployEntry)
25
    {
26
        parent::__construct($name);
27
        $this->deployEntry = $deployEntry;
28
    }
29
30
    /**
31
     * @return Entry
32
     */
33
    public function getDeployEntry()
34
    {
35
        return $this->deployEntry;
36
    }
37
}
38