Passed
Push — master ( 44183e...5f9ead )
by Fabrice
02:05
created

YaEtlEvent::getEventList()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 9
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 4
nc 2
nop 0
dl 0
loc 9
rs 9.6666
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of YaEtl.
5
 *     (c) Fabrice de Stefanis / https://github.com/fab2s/YaEtl
6
 * This source file is licensed under the MIT license which you will
7
 * find in the LICENSE file or at https://opensource.org/licenses/MIT
8
 */
9
10
namespace fab2s\YaEtl\Events;
11
12
use fab2s\NodalFlow\Events\FlowEvent;
13
14
/**
15
 * Class YaEtlEvent
16
 */
17
class YaEtlEvent extends FlowEvent
18
{
19
    /**
20
     * add flush Events
21
     */
22
    const FLOW_FLUSH = 'flow.flush';
23
24
    /**
25
     * @return array
26
     */
27
    public static function getEventList()
28
    {
29
        if (!isset(static::$eventList)) {
30
            static::$eventList = array_replace(parent::getEventList(), [
31
                static::FLOW_FLUSH => static::FLOW_FLUSH,
32
            ]);
33
        }
34
35
        return static::$eventList;
36
    }
37
}
38