Initial commit: CloudOps infrastructure platform
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Mautic\PageBundle\Event;
|
||||
|
||||
use Mautic\CoreBundle\Event\CommonEvent;
|
||||
use Mautic\PageBundle\Entity\Page;
|
||||
|
||||
class PageEvent extends CommonEvent
|
||||
{
|
||||
/**
|
||||
* @param bool $isNew
|
||||
*/
|
||||
public function __construct(Page $page, $isNew = false)
|
||||
{
|
||||
$this->entity = $page;
|
||||
$this->isNew = $isNew;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the Page entity.
|
||||
*
|
||||
* @return Page
|
||||
*/
|
||||
public function getPage()
|
||||
{
|
||||
return $this->entity;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the Page entity.
|
||||
*/
|
||||
public function setPage(Page $page): void
|
||||
{
|
||||
$this->entity = $page;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user