AsynchronousMessagesConfigurator   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 4
dl 0
loc 21
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getConfigKey() 0 4 1
A createConfigurators() 0 8 1
1
<?php declare(strict_types = 1);
2
3
namespace TomCizek\SymfonyProoph\AsynchronousMessages;
4
5
use TomCizek\SymfonyProoph\AsynchronousMessages\Configurators\AsynchronousCommandProducerConfigurator;
6
use TomCizek\SymfonyProoph\AsynchronousMessages\Configurators\AsynchronousEventProducerConfigurator;
7
use TomCizek\SymfonyProoph\AsynchronousMessages\Configurators\AsynchronousQueryProducerConfigurator;
8
use TomCizek\SymfonyProoph\Common\CompositeConfigurator;
9
use TomCizek\SymfonyProoph\Common\Configurator;
10
11
class AsynchronousMessagesConfigurator extends CompositeConfigurator
12
{
13
	public const KEY = 'asynchronous_messaging';
14
15 18
	public function getConfigKey(): string
16
	{
17 18
		return self::KEY;
18
	}
19
20
	/**
21
	 * @return Configurator[]|string[]
22
	 */
23 19
	protected function createConfigurators(): array
24
	{
25
		return [
26 19
			new AsynchronousCommandProducerConfigurator($this->containerBuilder),
27 19
			new AsynchronousEventProducerConfigurator($this->containerBuilder),
28 19
			new AsynchronousQueryProducerConfigurator($this->containerBuilder),
29
		];
30
	}
31
}
32