![]() 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/PluginBundle/Exception/ |
<?php namespace Mautic\PluginBundle\Exception; use Mautic\LeadBundle\Entity\Lead; class ApiErrorException extends \Exception { private $contactId; private ?Lead $contact = null; /** * @param string $message * @param int $code */ public function __construct($message = 'API error', $code = 0, \Exception $previous = null) { parent::__construct($message, $code, $previous); } /** * @return mixed */ public function getContactId() { return $this->contactId; } /** * @param mixed $contactId * * @return ApiErrorException */ public function setContactId($contactId) { $this->contactId = $contactId; return $this; } /** * @return Lead */ public function getContact() { return $this->contact; } /** * @return ApiErrorException */ public function setContact(Lead $contact) { $this->contact = $contact; return $this; } }