![]() 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/vendor/litesaml/lightsaml/src/Context/Profile/ |
<?php namespace LightSaml\Context\Profile; class ExceptionContext extends AbstractProfileContext { /** @var \Exception */ protected $exception; /** @var ExceptionContext|null */ protected $nextExceptionContext; public function __construct(\Exception $exception = null) { $this->exception = $exception; } /** * @return \Exception */ public function getException() { return $this->exception; } /** * @return \Exception|null */ public function getLastException() { if (null == $this->nextExceptionContext) { return $this->exception; } return $this->nextExceptionContext->getException(); } /** * @return ExceptionContext|null */ public function getNextExceptionContext() { return $this->nextExceptionContext; } /** * @return ExceptionContext */ public function addException(\Exception $exception) { if ($this->exception) { if (null == $this->nextExceptionContext) { $this->nextExceptionContext = new self($exception); return $this->nextExceptionContext; } else { return $this->nextExceptionContext->addException($exception); } } else { $this->exception = $exception; } return $this; } }