LogRabbitMqConfig   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
eloc 7
c 2
b 0
f 0
dl 0
loc 22
ccs 6
cts 6
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getQueueName() 0 3 1
A getExchangeName() 0 5 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Xervice\LogRabbitMq;
5
6
use Xervice\Core\Business\Model\Config\AbstractConfig;
7
8
class LogRabbitMqConfig extends AbstractConfig
9
{
10
    public const QUEUE_NAME = 'log.queue.name';
11
12
    public const EXCHANGE_NAME = 'log.exchange.name';
13
14
    /**
15
     * @return string
16
     */
17 1
    public function getQueueName(): string
18
    {
19 1
        return $this->get(self::QUEUE_NAME, 'log');
20
    }
21
22
    /**
23
     * @return string
24
     */
25 1
    public function getExchangeName(): string
26
    {
27 1
        return $this->get(
28 1
            self::EXCHANGE_NAME,
29 1
            $this->getQueueName()
30
        );
31
    }
32
}