Completed
Push — master ( 8b2d07...19f052 )
by Daniel
04:03 queued 01:35
created

Meta::getEventName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
c 1
b 0
f 0
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * @package event
4
 */
5
6
7
namespace Mleko\Event;
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
    public function __construct($event, $eventName, $matchedName, Emitter $emitter)
29
    {
30
        $this->event = $event;
31
        $this->eventName = $eventName;
32
        $this->matchedName = $matchedName;
33
        $this->emitter = $emitter;
34
    }
35
36
    /**
37
     * @return object
38
     */
39
    public function getEvent()
40
    {
41
        return $this->event;
42
    }
43
44
    /**
45
     * @return string
46
     */
47
    public function getEventName()
48
    {
49
        return $this->eventName;
50
    }
51
52
    /**
53
     * @return string
54
     */
55
    public function getMatchedName()
56
    {
57
        return $this->matchedName;
58
    }
59
60
    /**
61
     * @return Emitter
62
     */
63
    public function getEmitter()
64
    {
65
        return $this->emitter;
66
    }
67
68
    
69
}
70