Completed
Push — master ( 0b2176...a454e0 )
by Matthew
05:42
created

Event::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

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
eloc 2
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Dtc\QueueBundle\EventDispatcher;
4
5
use Dtc\QueueBundle\Model\Job;
6
7
class Event
8
{
9
    const PRE_JOB = 'queue.pre_job';
10
    const POST_JOB = 'queue.post_job';
11
12
    private $job;
13
14
    public function __construct(Job $job)
15
    {
16
        $this->job = $job;
17
    }
18
19
    /**
20
     * @param mixed $job
21
     */
22
    public function setJob($job)
23
    {
24
        $this->job = $job;
25
    }
26
27
    /**
28
     * @return mixed
29
     */
30
    public function getJob()
31
    {
32
        return $this->job;
33
    }
34
}
35