Completed
Pull Request — master (#8)
by Mathieu
04:32 queued 02:40
created

Event::subscribe()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 1 Features 1
Metric Value
cc 1
eloc 2
c 1
b 1
f 1
nc 1
nop 1
dl 0
loc 5
ccs 0
cts 3
cp 0
crap 2
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Suricate;
6
7
class Event
8
{
9
    /** @const string event type*/
10
    const EVENT_TYPE = '';
11
12
    /**
13
     * Get event type
14
     *
15
     * @return string
16
     */
17 2
    public static function getEventType(): string
18
    {
19 2
        return static::EVENT_TYPE;
20
    }
21
}
22