Completed
Pull Request — master (#37)
by Peter
23:57
created

ImportEvent::getImport()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace TreeHouse\IoBundle\Import\Event;
4
5
use Symfony\Component\EventDispatcher\Event;
6
use TreeHouse\IoBundle\Entity\Import;
7
8
class ImportEvent extends Event
9
{
10
    /**
11
     * @var Import
12
     */
13
    protected $import;
14
15
    /**
16
     * @param Import $import
17
     */
18 2
    public function __construct(Import $import)
19
    {
20 2
        $this->import = $import;
21 2
    }
22
23
    /**
24
     * @return Import
25
     */
26
    public function getImport()
27
    {
28
        return $this->import;
29
    }
30
}
31