Completed
Push — master ( 3a9e02...ed265b )
by Pierre
03:47
created

ListenerAbstract::publish()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
dl 0
loc 2
ccs 0
cts 0
cp 0
crap 2
rs 10
c 1
b 0
f 0
eloc 0
nc 1
nop 1
1
<?php
2
3
namespace App\Component\Pubsub;
4
5
abstract class ListenerAbstract implements ListenerInterface
6
{
7
    /**
8
     * publish
9
     *
10
     * @param EventInterface $event
11
     * @return void
12
     */
13
    public function publish(EventInterface $event)
14
    {
15
        // do nothing
16
    }
17
18
    /**
19
     * return listener hash string
20
     *
21
     * @return string
22
     */
23
    public function hash(): string
24
    {
25
        return spl_object_hash($this);
26
    }
27
}
28