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

Event   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 28
ccs 0
cts 12
cp 0
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A setJob() 0 4 1
A getJob() 0 4 1
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