AXIAM PHP SDK

ManagedPermission
in package

FinalYes

Declares that a permission must exist, as part of a CONTRACT.md ยง27.6 manifest.

See ManagedRole for why the declarative layer wears an attribute in PHP.

Attributes
#[Attribute]
\Attribute::TARGET_CLASS | \Attribute::IS_REPEATABLE

Table of Contents

Properties

$action  : string
$description  : string
$key  : string

Methods

__construct()  : mixed

Properties

Methods

__construct()

public __construct(string $key, string $action[, string $description = '' ]) : mixed
Parameters
$key : string

Manifest-local identity, referenced by a role's grants.

$action : string

The action this permission names (e.g. documents:read).

$description : string = ''

Human-readable description.

On this page

Search results