Documentation

AuthorizedTrait

Trait AuthorizedTrait

Table of Contents

Properties

$authorized  : bool|null

Methods

authorize()  : static
Mark the request as authorized.
isAuthorized()  : bool|null
setAuthorized()  : static
Change the authorization status.

Properties

$authorized

private bool|null $authorized = NULL
  • TRUE: The action is explicitly authorized.
  • FALSE: The action is explicitly prohibited.
  • NULL: The authorization status has not been determined.

Methods

authorize()

Mark the request as authorized.

public authorize() : static
Return values
static

isAuthorized()

public isAuthorized() : bool|null
Return values
bool|null

TRUE if the request has been authorized.

setAuthorized()

Change the authorization status.

public setAuthorized(bool|null $authorized) : static
Parameters
$authorized : bool|null
Return values
static

        
On this page

Search results