Test Failed
Pull Request — master (#39)
by Aleksandr
05:36
created

OnConsumeEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
3
namespace OldSound\RabbitMqBundle\Event;
4
5
use OldSound\RabbitMqBundle\RabbitMq\Consumer;
6
7
/**
8
 * Class OnConsumeEvent
9
 *
10
 * @package OldSound\RabbitMqBundle\Command
11
 */
12
class OnConsumeEvent extends AbstractAMQPEvent
13
{
14
    const NAME = 'old_sound_rabbit_mq.on_consume';
15
16
    /**
17
     * OnConsumeEvent constructor.
18
     *
19
     * @param Consumer $consumer
20
     */
21 10
    public function __construct(Consumer $consumer)
22
    {
23 10
        $this->consumer = $consumer;
0 ignored issues
show
Bug Best Practice introduced by
The property consumer does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
24 10
    }
25
}
26