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