Spaces:
No application file
No application file
namespace MauticPlugin\MauticSocialBundle\Event; | |
use Mautic\CoreBundle\Event\CommonEvent; | |
use MauticPlugin\MauticSocialBundle\Entity\Monitoring; | |
class SocialEvent extends CommonEvent | |
{ | |
/** | |
* @param bool $isNew | |
*/ | |
public function __construct(Monitoring $monitoring, $isNew = false) | |
{ | |
$this->entity = $monitoring; | |
$this->isNew = $isNew; | |
} | |
/** | |
* Returns the Monitoring entity. | |
* | |
* @return Monitoring | |
*/ | |
public function getMonitoring() | |
{ | |
return $this->entity; | |
} | |
/** | |
* Sets the Monitoring entity. | |
*/ | |
public function setMonitoring(Monitoring $monitoring): void | |
{ | |
$this->entity = $monitoring; | |
} | |
} | |