EventQueueNameGenerator::generate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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