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

PackageDeployEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2
Metric Value
dl 0
loc 5
ccs 0
cts 5
cp 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
crap 2
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