General onetime service (#6340)
[openemr.git] / src / Common / Auth / Exception / OneTimeAuthException.php
blob0ffa22e0f29d29e5ceab56231e95f0f3574f295d
1 <?php
3 namespace OpenEMR\Common\Auth\Exception;
5 class OneTimeAuthException extends \Exception
7 /**
8 * @var int|null The pid of the patient that we attempting to run the onetime on
9 */
10 private $pid;
12 public function __construct(string $message = "", $pid = null, int $code = 0, ?Throwable $previous = null)
14 parent::__construct($message, $code, $previous);
15 $this->pid = $pid ?? null;
18 public function getPid(): ?int
20 return $this->pid;