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

MessageQueueEvent   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 37
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 37
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0

3 Methods

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