Initial commit: CloudOps infrastructure platform
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace MauticPlugin\MauticFocusBundle\Event;
|
||||
|
||||
use Mautic\CoreBundle\Event\CommonEvent;
|
||||
use MauticPlugin\MauticFocusBundle\Entity\Focus;
|
||||
|
||||
class FocusEvent extends CommonEvent
|
||||
{
|
||||
/**
|
||||
* @param bool|false $isNew
|
||||
*/
|
||||
public function __construct(Focus $focus, $isNew = false)
|
||||
{
|
||||
$this->entity = $focus;
|
||||
$this->isNew = $isNew;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the Focus entity.
|
||||
*
|
||||
* @return Focus
|
||||
*/
|
||||
public function getFocus()
|
||||
{
|
||||
return $this->entity;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the Focus entity.
|
||||
*/
|
||||
public function setFocus(Focus $focus): void
|
||||
{
|
||||
$this->entity = $focus;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace MauticPlugin\MauticFocusBundle\Event;
|
||||
|
||||
use MauticPlugin\MauticFocusBundle\Entity\Stat;
|
||||
use Symfony\Contracts\EventDispatcher\Event;
|
||||
|
||||
class FocusViewEvent extends Event
|
||||
{
|
||||
public function __construct(
|
||||
private Stat $stat,
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Stat
|
||||
*/
|
||||
public function getStat()
|
||||
{
|
||||
return $this->stat;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user