Skip to content
docsv0.2.0

AuthorizationResult

Result of authorization check.

AuthorizationResult::allowed()

public static function allowed(): self

Build a passing authorization result.

AuthorizationResult::denied()

public static function denied(string $reason): self

Build a failing authorization result carrying the human-readable reason for the denial.

Parameters

Parameters of denied()
NameTypeDescription
$reasonstring