Completed
Push — master ( 12bd24...1184b8 )
by Danny
03:40
created

ConsumerSectionFactory   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 5
dl 0
loc 42
ccs 10
cts 10
cp 1
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A createExchange() 0 4 1
A createLogs() 0 4 1
A createPrefetch() 0 4 1
A createQueue() 0 4 1
A createRabbitmq() 0 4 1
1
<?php
2
3
namespace MyOnlineStore\Bundle\RabbitMqManagerBundle\Configuration\Consumer;
4
5
use MyOnlineStore\Bundle\RabbitMqManagerBundle\Configuration\Consumer\Section\Exchange;
6
use MyOnlineStore\Bundle\RabbitMqManagerBundle\Configuration\Consumer\Section\Logs;
7
use MyOnlineStore\Bundle\RabbitMqManagerBundle\Configuration\Consumer\Section\Prefetch;
8
use MyOnlineStore\Bundle\RabbitMqManagerBundle\Configuration\Consumer\Section\Queue;
9
use MyOnlineStore\Bundle\RabbitMqManagerBundle\Configuration\Consumer\Section\Rabbitmq;
10
11
class ConsumerSectionFactory implements ConsumerSectionFactoryInterface
12
{
13
    /**
14
     * @inheritdoc
15
     */
16 1
    public function createExchange(array $properties = [])
17
    {
18 1
        return new Exchange($properties);
19
    }
20
21
    /**
22
     * @inheritdoc
23
     */
24 1
    public function createLogs(array $properties = [])
25
    {
26 1
        return new Logs($properties);
27
    }
28
29
    /**
30
     * @inheritdoc
31
     */
32 1
    public function createPrefetch(array $properties = [])
33
    {
34 1
        return new Prefetch($properties);
35
    }
36
37
    /**
38
     * @inheritdoc
39
     */
40 1
    public function createQueue(array $properties = [])
41
    {
42 1
        return new Queue($properties);
43
    }
44
45
    /**
46
     * @inheritdoc
47
     */
48 1
    public function createRabbitmq(array $properties = [])
49
    {
50 1
        return new Rabbitmq($properties);
51
    }
52
}
53