Completed
Push — master ( 7fae80...8ffdf8 )
by Matthew
07:25
created

Event   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 28
ccs 8
cts 8
cp 1
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 8
    public function __construct(Job $job)
15
    {
16 8
        $this->job = $job;
17 8
    }
18
19
    /**
20
     * @param mixed $job
21
     */
22 1
    public function setJob($job)
23
    {
24 1
        $this->job = $job;
25 1
    }
26
27
    /**
28
     * @return mixed
29
     */
30 1
    public function getJob()
31
    {
32 1
        return $this->job;
33
    }
34
}
35