EventManager   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
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 29
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
declare(strict_types=1);
4
5
namespace DoctrineModule\Options;
6
7
use Laminas\Stdlib\AbstractOptions;
8
9
/**
10
 * EventManager options
11
 *
12
 * @link    http://www.doctrine-project.org/
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 mixed[]
22
     */
23
    protected $subscribers = [];
24
25
    /**
26
     * @param mixed[] $subscribers
27
     */
28 4
    public function setSubscribers(array $subscribers) : self
29
    {
30 4
        $this->subscribers = $subscribers;
31
32 4
        return $this;
33
    }
34
35
    /**
36
     * @return mixed[]
37
     */
38 4
    public function getSubscribers() : array
39
    {
40 4
        return $this->subscribers;
41
    }
42
}
43