Completed
Push — master ( 430ebb...3c20a3 )
by Peter
02:58
created

EventClassResolver::getEventName()   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 0
Metric Value
c 0
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
 * GpsLab component.
4
 *
5
 * @author    Peter Gribanov <[email protected]>
6
 * @copyright Copyright (c) 2016, Peter Gribanov
7
 * @license   http://opensource.org/licenses/MIT
8
 */
9
namespace GpsLab\Domain\Event\NameResolver;
10
11
use GpsLab\Domain\Event\EventInterface;
12
13
class EventClassResolver implements EventNameResolverInterface
14
{
15
    /**
16
     * @param EventInterface $event
17
     *
18
     * @return string
19
     */
20 1
    public function getEventName(EventInterface $event)
21
    {
22 1
        return get_class($event);
23
    }
24
}
25