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

EventManager   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 23
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getEventDispatcher() 0 3 1
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