Bristol SU Support Package
src
Authorization
Exception
ModuleInactive.php
Go to the documentation of this file.
1
<?php
2
3
namespace
BristolSU\Support\Authorization\Exception
;
4
5
use
BristolSU\Support\ModuleInstance\Contracts\ModuleInstance
;
6
use
Exception
;
7
use
Throwable
;
8
12
class
ModuleInactive
extends
Exception
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
}
BristolSU\Support\Authorization\Exception\ModuleInactive\__construct
__construct($message="", $code=0, Throwable $previous=null, $moduleInstance=null)
Definition:
ModuleInactive.php:29
BristolSU\Support\Authorization\Exception\ModuleInactive\getModuleInstance
getModuleInstance()
Definition:
ModuleInactive.php:54
BristolSU\Support\Authorization\Exception
Definition:
ActivityDisabled.php:3
BristolSU\Support\Authorization\Exception\ModuleInactive\createWithModuleInstance
static createWithModuleInstance(ModuleInstance $moduleInstance, string $message='', int $code=0)
Definition:
ModuleInactive.php:44
BristolSU\Support\ModuleInstance\Contracts\ModuleInstance
Definition:
ModuleInstance.php:12
ModuleInstance
BristolSU\Support\Authorization\Exception\ModuleInactive
Definition:
ModuleInactive.php:12
BristolSU\Support\Authorization\Exception\ModuleInactive\$moduleInstance
$moduleInstance
Definition:
ModuleInactive.php:19
Exception
Throwable
Generated by
1.8.13