Completed
Push — master ( 60fe7d...424c83 )
by Daniel
02:27
created

Meta::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
dl 0
loc 4
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * @package narrator
4
 */
5
6
7
namespace Mleko\Narrator;
8
9
10
class Meta
11
{
12
    /** @var object */
13
    private $event;
14
    /** @var string */
15
    private $eventName;
16
    /** @var string */
17
    private $matchedName;
18
    /** @var Emitter */
19
    private $emitter;
20
21
    /**
22
     * Meta constructor.
23
     * @param object $event
24
     * @param string $eventName
25
     * @param string $matchedName
26
     * @param Emitter $emitter
27
     */
28 7
    public function __construct($event, $eventName, $matchedName, Emitter $emitter)
29
    {
30 7
        $this->event = $event;
31 7
        $this->eventName = $eventName;
32 7
        $this->matchedName = $matchedName;
33 7
        $this->emitter = $emitter;
34 7
    }
35
36
    /**
37
     * @return object
38
     */
39 1
    public function getEvent()
40
    {
41 1
        return $this->event;
42
    }
43
44
    /**
45
     * @return string
46
     */
47 1
    public function getEventName()
48
    {
49 1
        return $this->eventName;
50
    }
51
52
    /**
53
     * @return string
54
     */
55 2
    public function getMatchedName()
56
    {
57 2
        return $this->matchedName;
58
    }
59
60
    /**
61
     * @return Emitter
62
     */
63 2
    public function getEmitter()
64
    {
65 2
        return $this->emitter;
66
    }
67
68
    
69
}
70