![]() 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/plugins/MauticSocialBundle/Event/ |
<?php namespace MauticPlugin\MauticSocialBundle\Event; use Mautic\CoreBundle\Event\CommonEvent; use MauticPlugin\MauticSocialBundle\Entity\Monitoring; class SocialMonitorEvent extends CommonEvent { protected int $newLeadCount; protected int $updatedLeadCount; /** * @param string $integrationName * @param int $newLeadCount * @param int $updatedLeadCount */ public function __construct( protected $integrationName, Monitoring $monitoring, protected array $leadIds, $newLeadCount, $updatedLeadCount ) { $this->entity = $monitoring; $this->newLeadCount = (int) $newLeadCount; $this->updatedLeadCount = (int) $updatedLeadCount; } /** * Returns the Monitoring entity. * * @return Monitoring */ public function getMonitoring() { return $this->entity; } /** * Get count of new leads. */ public function getNewLeadCount(): int { return $this->newLeadCount; } /** * Get count of updated leads. */ public function getUpdatedLeadCount(): int { return $this->updatedLeadCount; } public function getTotalLeadCount(): int { return $this->updatedLeadCount + $this->newLeadCount; } /** * @return array */ public function getLeadIds() { return $this->leadIds; } /** * @return mixed */ public function getIntegrationName() { return $this->integrationName; } }