Bristol SU Support Package
ModuleInactive.php
Go to the documentation of this file.
1 <?php
2 
4 
6 use Exception;
7 use Throwable;
8 
13 {
19  private $moduleInstance;
20 
29  public function __construct($message = "", $code = 0, Throwable $previous = null, $moduleInstance = null)
30  {
31  parent::__construct($message, $code, $previous);
32  $this->moduleInstance = $moduleInstance;
33  }
34 
44  public static function createWithModuleInstance(ModuleInstance $moduleInstance, string $message = '', int $code = 0)
45  {
46  return new self($message, $code, null, $moduleInstance);
47  }
48 
54  public function getModuleInstance()
55  {
56  return $this->moduleInstance;
57  }
58 }
__construct($message="", $code=0, Throwable $previous=null, $moduleInstance=null)
static createWithModuleInstance(ModuleInstance $moduleInstance, string $message='', int $code=0)