Completed
Push — master ( a2576c...ed81f2 )
by Matze
04:00
created

JobEvent   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 21
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace BrainExe\Core\EventDispatcher;
4
5
use BrainExe\Core\MessageQueue\Job;
6
7
/**
8
 * @api
9
 */
10
class JobEvent extends AbstractEvent implements PushViaWebsocket
11
{
12
13
    const ADDED   = 'message_queue.added';
14
    const HANDLED = 'message_queue.handled';
15
16
    /**
17
     * @var Job
18
     */
19
    public $job;
20
21
    /**
22
     * @param string $type
23
     * @param Job $job
24
     */
25
    public function __construct($type, Job $job)
26
    {
27
        parent::__construct($type);
28
        $this->job  = $job;
29
    }
30
}
31