Completed
Push — master ( c458f8...eeebc2 )
by Matze
06:56
created

AbstractEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
namespace BrainExe\Core\EventDispatcher;
4
5
use Symfony\Component\EventDispatcher\Event;
6
7
/**
8
 * @api
9
 */
10
abstract class AbstractEvent extends Event
11
{
12
13
    /**
14
     * @todo private
0 ignored issues
show
Coding Style introduced by
Comment refers to a TODO task

This check looks TODO comments that have been left in the code.

``TODO``s show that something is left unfinished and should be attended to.

Loading history...
15
     * @var string
16
     */
17
    public $eventName;
18
19
    /**
20
     * @param string $eventName
21 23
     */
22
    public function __construct($eventName)
23 23
    {
24 23
        $this->eventName = $eventName;
25
    }
26
27
    /**
28
     * @return string
29
     */
30
    public function getEventName()
31
    {
32
        return $this->eventName;
33
    }
34
}
35