LogQueue::declareQueue()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 8
ccs 5
cts 5
cp 1
rs 10
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
4
namespace Xervice\LogRabbitMq\Business\Plugin\Queue;
5
use Xervice\Core\Plugin\AbstractBusinessPlugin;
6
use Xervice\RabbitMQ\Business\Dependency\Queue\QueueInterface;
7
use Xervice\RabbitMQ\Business\Model\Core\QueueProviderInterface;
8
9
10
/**
11
 * @method \Xervice\LogRabbitMq\Business\LogRabbitMqBusinessFactory getFactory()
12
 */
13
class LogQueue extends AbstractBusinessPlugin implements QueueInterface
14
{
15 1
    public function declareQueue(QueueProviderInterface $queueProvider)
16
    {
17 1
        $queueProvider->declare(
18 1
            $this->getFactory()->createLogQueue()
19
        );
20
21 1
        $queueProvider->bind(
22 1
            $this->getFactory()->createLogQueueBind()
23
        );
24
    }
25
}