37 lines
659 B
PHP
Executable File
37 lines
659 B
PHP
Executable File
<?php
|
|
|
|
namespace Mautic\LeadBundle\Event;
|
|
|
|
use Mautic\CoreBundle\Event\CommonEvent;
|
|
use Mautic\LeadBundle\Entity\LeadField;
|
|
|
|
class LeadFieldEvent extends CommonEvent
|
|
{
|
|
/**
|
|
* @param bool $isNew
|
|
*/
|
|
public function __construct(LeadField &$field, $isNew = false)
|
|
{
|
|
$this->entity = &$field;
|
|
$this->isNew = $isNew;
|
|
}
|
|
|
|
/**
|
|
* Returns the Field entity.
|
|
*
|
|
* @return LeadField
|
|
*/
|
|
public function getField()
|
|
{
|
|
return $this->entity;
|
|
}
|
|
|
|
/**
|
|
* Sets the LeadField entity.
|
|
*/
|
|
public function setField(LeadField $field): void
|
|
{
|
|
$this->entity = $field;
|
|
}
|
|
}
|