EventQueueNameGenerator   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 1
c 1
b 0
f 1
dl 0
loc 11
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A generate() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Jellyfish\Event;
6
7
use function sprintf;
8
9
class EventQueueNameGenerator implements EventQueueNameGeneratorInterface
10
{
11
    /**
12
     * @param string $eventName
13
     * @param string $listenerIdentifier
14
     *
15
     * @return string
16
     */
17
    public function generate(string $eventName, string $listenerIdentifier): string
18
    {
19
        return sprintf('%s_%s', $eventName, $listenerIdentifier);
20
    }
21
}
22