32 lines
551 B
PHP
Executable File
32 lines
551 B
PHP
Executable File
<?php
|
|
|
|
namespace Mautic\PointBundle\Event;
|
|
|
|
use Mautic\CoreBundle\Event\CommonEvent;
|
|
use Mautic\PointBundle\Entity\Point;
|
|
|
|
class PointEvent extends CommonEvent
|
|
{
|
|
/**
|
|
* @param bool $isNew
|
|
*/
|
|
public function __construct(Point &$point, $isNew = false)
|
|
{
|
|
$this->entity = &$point;
|
|
$this->isNew = $isNew;
|
|
}
|
|
|
|
/**
|
|
* @return Point
|
|
*/
|
|
public function getPoint()
|
|
{
|
|
return $this->entity;
|
|
}
|
|
|
|
public function setPoint(Point $point): void
|
|
{
|
|
$this->entity = $point;
|
|
}
|
|
}
|