Completed
Push — master ( 57c0ee...30a057 )
by Tom
10s
created

EventManager::getSubscribers()   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 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 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