Completed
Push — 4.0 ( 954171...ed2d0a )
by Marco
13:55
created

AbstractEvent::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 5
rs 9.4286
cc 1
eloc 2
nc 1
nop 0
1
<?php namespace Comodojo\Dispatcher\Events;
2
3
use \Comodojo\Dispatcher\Components\Timestamp as TimestampTrait;
4
use \League\Event\AbstractEvent as LeagueAbstractEvent;
5
6
7
abstract class AbstractEvent extends LeagueAbstractEvent {
8
9
    use TimestampTrait;
10
11
    private $name = null;
12
13
    public function __construct($name) {
14
15
        $this->setTimestamp();
16
17
        $this->name = $name;
18
19
    }
20
21
    public function getName() {
22
23
        return $this->name;
24
25
    }
26
27
}
28