EventBusConfigurator::getBusFactoryClass()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php declare(strict_types = 1);
2
3
namespace TomCizek\SymfonyProoph\ServiceBus\ServiceBusConfigurators;
4
5
use Prooph\ServiceBus\Container\EventBusFactory;
6
use Prooph\ServiceBus\EventBus;
7
8
class EventBusConfigurator extends AbstractBusConfigurator
9
{
10
	public const KEY_EVENT_BUS = 'event_bus';
11
12 16
	public function getBusClass(): string
13
	{
14 16
		return EventBus::class;
15
	}
16
17 16
	public function getBusFactoryClass(): string
18
	{
19 16
		return EventBusFactory::class;
20
	}
21
22 18
	public function getConfigKey(): string
23
	{
24 18
		return self::KEY_EVENT_BUS;
25
	}
26
}
27