mautic / app /bundles /ChannelBundle /Event /MessageQueueProcessEvent.php
chrisbryan17's picture
Upload folder using huggingface_hub
d2897cd verified
<?php
namespace Mautic\ChannelBundle\Event;
use Mautic\ChannelBundle\Entity\MessageQueue;
use Mautic\CoreBundle\Event\CommonEvent;
class MessageQueueProcessEvent extends CommonEvent
{
public function __construct(MessageQueue $entity)
{
$this->entity = $entity;
}
/**
* @return MessageQueue
*/
public function getMessageQueue()
{
return $this->entity;
}
public function checkContext($channel): bool
{
return $channel === $this->entity->getChannel();
}
}