chrisbryan17's picture
Upload folder using huggingface_hub
d2897cd verified
<?php
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;
}
}