Spaces:
No application file
No application file
namespace Mautic\CampaignBundle\Event; | |
use Mautic\CampaignBundle\Entity\Campaign; | |
use Mautic\CoreBundle\Event\CommonEvent; | |
class CampaignEvent extends CommonEvent | |
{ | |
/** | |
* @param bool $isNew | |
*/ | |
public function __construct(Campaign &$campaign, $isNew = false) | |
{ | |
$this->entity = &$campaign; | |
$this->isNew = $isNew; | |
} | |
/** | |
* Returns the Campaign entity. | |
* | |
* @return Campaign | |
*/ | |
public function getCampaign() | |
{ | |
return $this->entity; | |
} | |
/** | |
* Sets the Campaign entity. | |
*/ | |
public function setCampaign(Campaign $campaign): void | |
{ | |
$this->entity = $campaign; | |
} | |
} | |