ServiceRescheduleWorker   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A execute() 0 4 1
1
<?php
2
3
namespace Gendoria\CommandQueueRabbitMqDriverBundle\Worker;
4
5
use OldSound\RabbitMqBundle\RabbitMq\ConsumerInterface;
6
use PhpAmqpLib\Message\AMQPMessage;
7
8
/**
9
 * "Dummy" class needed to create RabbitMQ reschedule queue.
10
 *
11
 * @author Tomasz Struczyński <[email protected]>
12
 */
13
class ServiceRescheduleWorker implements ConsumerInterface
14
{
15
    /**
16
     * Class constructor - does nothing.
17
     */
18 1
    public function __construct()
19
    {
20 1
    }
21
22
    /**
23
     * Process message, sending it back to queue.
24
     *
25
     * @param AMQPMessage $msg
26
     *
27
     * @return int Return self::MSG_REJECT_REQUEUE value to enforce message requeue.
28
     */
29 1
    public function execute(AMQPMessage $msg)
30
    {
31 1
        return self::MSG_REJECT_REQUEUE;
32
    }
33
}
34