Files
CloudOps/docker-compose/mautic-setup/mautic-backup-files/docroot/app/bundles/LeadBundle/Event/LeadDeviceEvent.php

37 lines
676 B
PHP
Executable File

<?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;
}
}