![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mautic.corals.io/app/bundles/PageBundle/Event/ |
<?php namespace Mautic\PageBundle\Event; use Mautic\LeadBundle\Entity\Lead; use Mautic\PageBundle\Entity\Page; use Symfony\Contracts\EventDispatcher\Event; class PageDisplayEvent extends Event { /** * Preferred lead to be used in listeners. */ private ?Lead $lead = null; public function __construct( private string $content, private Page $page, private array $params = [] ) { } /** * Returns the Page entity. * * @return Page */ public function getPage() { return $this->page; } /** * Get page content. */ public function getContent(): string { return $this->content; } /** * Set page content. * * @param string $content */ public function setContent($content): void { $this->content = $content; } /** * Get params. * * @return array */ public function getParams() { return $this->params; } /** * Set params. * * @param array $params */ public function setParams($params): void { $this->params = $params; } public function getLead(): ?Lead { return $this->lead; } public function setLead(Lead $lead): void { $this->lead = $lead; } }