Completed
Push — master ( 19f052...a53983 )
by Daniel
03:36 queued 01:26
created

Meta::getMatchedName()   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 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
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 3
    public function __construct($event, $eventName, $matchedName, Emitter $emitter)
29
    {
30 3
        $this->event = $event;
31 3
        $this->eventName = $eventName;
32 3
        $this->matchedName = $matchedName;
33 3
        $this->emitter = $emitter;
34 3
    }
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 1
    public function getMatchedName()
56
    {
57 1
        return $this->matchedName;
58
    }
59
60
    /**
61
     * @return Emitter
62
     */
63 1
    public function getEmitter()
64
    {
65 1
        return $this->emitter;
66
    }
67
68
    
69
}
70