AXIAM PHP SDK

ReasonCode
in package

FinalYes

The three `reason_code` values CONTRACT.md ยง11 rule 9 defines.

Class constants rather than a backed enum, so an unrecognised server value is still a valid AccessDecision::$reasonCode and reaches the caller โ€” an enum's from()/tryFrom() would force the SDK to throw on, or drop, what it cannot name.

Table of Contents

Constants

ALLOWED  : mixed = 'allowed'
An allow grant matched and no deny did.
DENIED_BY_RULE  : mixed = 'denied_by_rule'
An explicit deny rule matched and overrode any allow. *An admin has already decided.*
NO_GRANT  : mixed = 'no_grant'
Nothing matched โ€” default deny. *Ask an admin for access.*

Constants

ALLOWED

An allow grant matched and no deny did.

public mixed ALLOWED = 'allowed'

DENIED_BY_RULE

An explicit deny rule matched and overrode any allow. *An admin has already decided.*

public mixed DENIED_BY_RULE = 'denied_by_rule'

NO_GRANT

Nothing matched โ€” default deny. *Ask an admin for access.*

public mixed NO_GRANT = 'no_grant'
On this page

Search results