MultipleByEvent   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 2
dl 0
loc 23
ccs 0
cts 12
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 12 1
1
<?php
2
3
/**
4
 * @author    Flipbox Factory
5
 * @copyright Copyright (c) 2017, Flipbox Digital
6
 * @link      https://github.com/flipbox/queue/releases/latest
7
 * @license   https://github.com/flipbox/queue/blob/master/LICENSE
8
 */
9
10
namespace flipbox\queue\queues;
11
12
use flipbox\queue\events\RegisterQueues;
13
14
/**
15
 * @author Flipbox Factory <[email protected]>
16
 * @since 1.0.0
17
 */
18
class MultipleByEvent extends Multiple
19
{
20
    /**
21
     * The register queues event name
22
     */
23
    const EVENT_REGISTER_QUEUES = 'registerQueues';
24
25
    /**
26
     * @inheritdoc
27
     */
28
    public function init()
29
    {
30
        $event = new RegisterQueues(
31
            $this->queues
32
        );
33
        $this->trigger(
34
            self::EVENT_REGISTER_QUEUES,
35
            $event
36
        );
37
        $this->queues = $event->queues;
38
        parent::init();
39
    }
40
}
41