CommandBusConfigurator   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 19
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getBusClass() 0 4 1
A getBusFactoryClass() 0 4 1
A getConfigKey() 0 4 1
1
<?php declare(strict_types = 1);
2
3
namespace TomCizek\SymfonyProoph\ServiceBus\ServiceBusConfigurators;
4
5
use Prooph\ServiceBus\CommandBus;
6
use Prooph\ServiceBus\Container\CommandBusFactory;
7
8
class CommandBusConfigurator extends AbstractBusConfigurator
9
{
10
	public const KEY_COMMAND_BUS = 'command_bus';
11
12 16
	public function getBusClass(): string
13
	{
14 16
		return CommandBus::class;
15
	}
16
17 16
	public function getBusFactoryClass(): string
18
	{
19 16
		return CommandBusFactory::class;
20
	}
21
22 18
	public function getConfigKey(): string
23
	{
24 18
		return self::KEY_COMMAND_BUS;
25
	}
26
}
27