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

AbstractEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
c 2
b 0
f 0
lcom 0
cbo 2
dl 0
loc 21
rs 10

2 Methods

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