Completed
Push — master ( b1744c...51aee2 )
by Matze
04:34
created

MessageQueueEvent::setJob()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
namespace BrainExe\Core\MessageQueue\Event;
4
5
use BrainExe\Core\EventDispatcher\AbstractEvent;
6
use BrainExe\Core\MessageQueue\Job;
7
8
/**
9
 * @api
10
 */
11
abstract class MessageQueueEvent extends AbstractEvent
12
{
13
14
    /**
15
     * @var AbstractEvent
16
     */
17
    public $event;
18
19
    /**
20
     * @var Job
21
     */
22
    private $job;
23
24
    /**
25
     * @return AbstractEvent
26
     */
27 6
    public function getEvent() : AbstractEvent
28
    {
29 6
        return $this->event;
30
    }
31
32
    /**
33
     * @return Job
34
     */
35 2
    public function getJob()
36
    {
37 2
        return $this->job;
38
    }
39
40
    /**
41
     * @param Job $job
42
     */
43 3
    public function setJob(Job $job)
44
    {
45 3
        $this->job = $job;
46 3
    }
47
}
48