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

Event/OnConsumeEvent.php (1 issue)

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