Completed
Pull Request — master (#615)
by Filippo
14:02 queued 03:29
created

EventManager   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 30
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setSubscribers() 0 6 1
A getSubscribers() 0 4 1
1
<?php
2
3
namespace DoctrineModule\Options;
4
5
use Zend\Stdlib\AbstractOptions;
6
7
/**
8
 * EventManager options
9
 *
10
 * @license MIT
11
 * @link    http://www.doctrine-project.org/
12
 * @author  Kyle Spraggs <[email protected]>
13
 */
14
class EventManager extends AbstractOptions
15
{
16
    /**
17
     * An array of subscribers. The array can contain the FQN of the
18
     * class to instantiate OR a string to be located with the
19
     * service locator.
20
     *
21
     * @var array
22
     */
23
    protected $subscribers = [];
24
25
    /**
26
     * @param  array $subscribers
27
     * @return self
28
     */
29 4
    public function setSubscribers($subscribers)
30
    {
31 4
        $this->subscribers = $subscribers;
32
33 4
        return $this;
34
    }
35
36
    /**
37
     * @return array
38
     */
39 4
    public function getSubscribers()
40
    {
41 4
        return $this->subscribers;
42
    }
43
}
44