NullListenerAggregate   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 29
ccs 4
cts 4
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A attach() 0 4 1
A detach() 0 4 1
1
<?php
2
3
namespace Abacaphiliac\Zend\EventManager\PluginManager\ListenerAggregate;
4
5
use Zend\EventManager\EventManagerInterface;
6
use Zend\EventManager\ListenerAggregateInterface;
7
8
class NullListenerAggregate implements ListenerAggregateInterface
9
{
10
    /**
11
     * Attach one or more listeners
12
     *
13
     * Implementors may add an optional $priority argument; the EventManager
14
     * implementation will pass this to the aggregate.
15
     *
16
     * @param EventManagerInterface $events
17
     *
18
     * @return void
19
     */
20 1
    public function attach(EventManagerInterface $events)
21
    {
22
23 1
    }
24
25
    /**
26
     * Detach all previously attached listeners
27
     *
28
     * @param EventManagerInterface $events
29
     *
30
     * @return void
31
     */
32 1
    public function detach(EventManagerInterface $events)
33
    {
34
35 1
    }
36
}
37