NullListenerAggregate::attach()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 1
nc 1
nop 1
crap 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