Spaces:
No application file
No application file
| declare(strict_types=1); | |
| namespace Mautic\MessengerBundle\Message; | |
| use Mautic\MessengerBundle\Message\Traits\MessageRequestTrait; | |
| use Symfony\Component\HttpFoundation\Request; | |
| final class PageHitNotification | |
| { | |
| use MessageRequestTrait; | |
| public function __construct( | |
| private int $hitId, | |
| private Request $request, | |
| private bool $isNew, | |
| private bool $isRedirect, | |
| private ?int $pageId = null, | |
| private ?int $leadId = null, | |
| ?\DateTimeInterface $eventTime = null | |
| ) { | |
| $this->setEventTime($eventTime ?? new \DateTimeImmutable()); | |
| } | |
| public function getHitId(): int | |
| { | |
| return $this->hitId; | |
| } | |
| public function getPageId(): ?int | |
| { | |
| return $this->pageId; | |
| } | |
| public function getLeadId(): ?int | |
| { | |
| return $this->leadId; | |
| } | |
| public function isNew(): bool | |
| { | |
| return $this->isNew; | |
| } | |
| public function isRedirect(): bool | |
| { | |
| return $this->isRedirect; | |
| } | |
| } | |