![]() 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/CampaignBundle/Executioner/Result/ |
<?php namespace Mautic\CampaignBundle\Executioner\Result; use Doctrine\Common\Collections\ArrayCollection; use Mautic\LeadBundle\Entity\Lead; class EvaluatedContacts { private ArrayCollection $passed; private ArrayCollection $failed; public function __construct(ArrayCollection $passed = null, ArrayCollection $failed = null) { $this->passed = $passed ?? new ArrayCollection(); $this->failed = $failed ?? new ArrayCollection(); } public function pass(Lead $contact): void { $this->passed->set($contact->getId(), $contact); } public function fail(Lead $contact): void { $this->failed->set($contact->getId(), $contact); } /** * @return ArrayCollection|Lead[] */ public function getPassed() { return $this->passed; } /** * @return ArrayCollection|Lead[] */ public function getFailed() { return $this->failed; } }