mautic / app /bundles /LeadBundle /Event /LeadDeviceEvent.php
chrisbryan17's picture
Upload folder using huggingface_hub
d2897cd verified
<?php
namespace Mautic\LeadBundle\Event;
use Mautic\CoreBundle\Event\CommonEvent;
use Mautic\LeadBundle\Entity\LeadDevice;
class LeadDeviceEvent extends CommonEvent
{
/**
* @param bool $isNew
*/
public function __construct(LeadDevice &$device, $isNew = false)
{
$this->entity = &$device;
$this->isNew = $isNew;
}
/**
* Returns the LeadDevice entity.
*
* @return LeadDevice
*/
public function getDevice()
{
return $this->entity;
}
/**
* Sets the LeadDevice entity.
*/
public function setDevice(LeadDevice $device): void
{
$this->entity = $device;
}
}