Passed
Push — master ( 8b4203...c04040 )
by Nashwan
02:43 queued 10s
created

EventManager::getEventDispatcher()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
/**
3
 * @package EBloodBank
4
 * @since   1.6
5
 */
6
namespace EBloodBank;
7
8
use Symfony\Component\EventDispatcher\EventDispatcher;
9
10
/**
11
 * @since 1.6
12
 */
13
class EventManager
14
{
15
    /**
16
     * @var   \Symfony\Component\EventDispatcher\EventDispatcher
17
     * @since 1.6
18
     */
19
    protected $eventDispatcher;
20
21
    /**
22
     * @since 1.6
23
     */
24
    public function __construct()
25
    {
26
        $this->eventDispatcher = new EventDispatcher();
27
    }
28
29
    /**
30
     * @return \Symfony\Component\EventDispatcher\EventDispatcher
31
     * @since  1.6
32
     */
33
    public function getEventDispatcher()
34
    {
35
        return $this->eventDispatcher;
36
    }
37
}
38