37 lines
722 B
PHP
Executable File
37 lines
722 B
PHP
Executable File
<?php
|
|
|
|
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;
|
|
}
|
|
}
|