Test Failed
Pull Request — master (#10)
by Alice
01:55
created

TestEvent::getEventParam()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Wonderland\Thread\Example\Simple;
4
5
6
use Wonderland\Thread\Mediator\Event\EventInterface;
7
8
class TestEvent implements EventInterface
9
{
10
    const EVENT_NAME = 'THREAD_TEST';
11
12
    /**
13
     * @var string
14
     */
15
    private $eventParam;
16
17
    /**
18
     * TestEvent constructor.
19
     *
20
     * @param $param
21
     */
22
    public function __construct($param)
23
    {
24
        $this->eventParam = $param;
25
    }
26
27
    /**
28
     * @return mixed
29
     */
30
    public function getEventParam()
31
    {
32
        return $this->eventParam;
33
    }
34
35
    /**
36
     * @param mixed $eventParam
37
     * @return TestEvent
38
     */
39
    public function setEventParam($eventParam)
40
    {
41
        $this->eventParam = $eventParam;
42
43
        return $this;
44
    }
45
46
    /**
47
     * @return string
48
     */
49
    public function getEventName(): string
50
    {
51
        return self::EVENT_NAME;
52
    }
53
54
55
}