Completed
Push — 3.0 ( fb09f5...9f4a0e )
by Daniel
02:19
created

PackageDeployEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getDeployEntry() 0 4 1
A __construct() 0 5 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 8
    public function __construct($name, Entry $deployEntry)
25
    {
26 8
        parent::__construct($name);
27 8
        $this->deployEntry = $deployEntry;
28 8
    }
29
30
    /**
31
     * @return Entry
32
     */
33 2
    public function getDeployEntry()
34
    {
35 2
        return $this->deployEntry;
36
    }
37
}
38