Completed
Push — master ( 971421...d8f9fb )
by Matthew
09:04
created

Event   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 37.5%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 28
ccs 3
cts 8
cp 0.375
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 4
    public function __construct(Job $job)
15
    {
16 4
        $this->job = $job;
17 4
    }
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