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

AbstractEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 4
Bugs 0 Features 0
Metric Value
wmc 2
c 4
b 0
f 0
lcom 0
cbo 1
dl 0
loc 25
ccs 3
cts 3
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getEventName() 0 4 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