Bristol SU Support Package
|
Public Member Functions | |
__construct ($message="", $code=0, Throwable $previous=null, $activity=null) | |
getActivity () | |
Static Public Member Functions | |
static | createWithActivity (Activity $activity, string $message='', int $code=0) |
Private Attributes | |
$activity | |
Exception to indicate an activity could not be accessed with the current credentials
Definition at line 12 of file ActivityRequiresParticipant.php.
BristolSU\Support\Authorization\Exception\ActivityRequiresParticipant::__construct | ( | $message = "" , |
|
$code = 0 , |
|||
Throwable | $previous = null , |
||
$activity = null |
|||
) |
Initialise the exception
string | $message | Message for the exception |
int | $code | Status code |
Throwable | null | $previous | Previous exception |
Activity | $activity | Activity that was accessed |
Definition at line 29 of file ActivityRequiresParticipant.php.
References BristolSU\Support\Authorization\Exception\ActivityRequiresParticipant\$activity.
|
static |
Create the exception with a given activity
Activity | $activity | Activity that was accessed |
string | $message | Message for the exception |
int | $code | Status code |
Definition at line 44 of file ActivityRequiresParticipant.php.
References BristolSU\Support\Authorization\Exception\ActivityRequiresParticipant\$activity.
Referenced by BristolSU\Support\Authorization\Middleware\CheckActivityFor\handle().
BristolSU\Support\Authorization\Exception\ActivityRequiresParticipant::getActivity | ( | ) |
Get the activity
Definition at line 54 of file ActivityRequiresParticipant.php.
References BristolSU\Support\Authorization\Exception\ActivityRequiresParticipant\$activity.
|
private |
Definition at line 19 of file ActivityRequiresParticipant.php.
Referenced by BristolSU\Support\Authorization\Exception\ActivityRequiresParticipant\__construct(), BristolSU\Support\Authorization\Exception\ActivityRequiresParticipant\createWithActivity(), and BristolSU\Support\Authorization\Exception\ActivityRequiresParticipant\getActivity().