Completed
Push — master ( 66ec7e...c9ec0a )
by Matze
07:32
created

BackgroundEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
ccs 0
cts 4
cp 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 2
1
<?php
2
3
namespace BrainExe\Core\EventDispatcher;
4
5
use BrainExe\Core\MessageQueue\Event\MessageQueueEvent;
6
7
/**
8
 * @api
9
 */
10
class BackgroundEvent extends MessageQueueEvent
11
{
12
13
    const BACKGROUND = 'message_queue.background';
14
15
    /**
16
     * @param AbstractEvent $event
17
     */
18
    public function __construct(AbstractEvent $event)
19
    {
20
        parent::__construct(self::BACKGROUND);
21
        $this->event = $event;
22
    }
23
}
24