eMAGTechLabs /
RabbitMqBundle
| 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
Loading history...
|
|||
| 24 | 10 | } |
|
| 25 | } |
||
| 26 |