58 lines
1.1 KiB
PHP
Executable File
58 lines
1.1 KiB
PHP
Executable File
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Mautic\PageBundle\Event;
|
|
|
|
use Mautic\CoreBundle\Event\CommonEvent;
|
|
use Mautic\PageBundle\Entity\Page;
|
|
|
|
final class PageEditSubmitEvent extends CommonEvent
|
|
{
|
|
public function __construct(
|
|
private Page $previousPage,
|
|
private Page $currentPage,
|
|
private bool $saveAndClose,
|
|
private bool $apply,
|
|
private bool $saveAsDraft,
|
|
private bool $applyDraft,
|
|
private bool $discardDraft,
|
|
) {
|
|
}
|
|
|
|
public function getPreviousPage(): Page
|
|
{
|
|
return $this->previousPage;
|
|
}
|
|
|
|
public function getCurrentPage(): Page
|
|
{
|
|
return $this->currentPage;
|
|
}
|
|
|
|
public function isSaveAndClose(): bool
|
|
{
|
|
return $this->saveAndClose;
|
|
}
|
|
|
|
public function isApply(): bool
|
|
{
|
|
return $this->apply;
|
|
}
|
|
|
|
public function isSaveAsDraft(): bool
|
|
{
|
|
return $this->saveAsDraft;
|
|
}
|
|
|
|
public function isApplyDraft(): bool
|
|
{
|
|
return $this->applyDraft;
|
|
}
|
|
|
|
public function isDiscardDraft(): bool
|
|
{
|
|
return $this->discardDraft;
|
|
}
|
|
}
|