AXIAM PHP SDK

ResourceSet
in package

FinalYes

A UMA resource set — an AXIAM resource seen through the Protection API (CONTRACT.md §20.1).

$id is the AXIAM resource id, not a parallel identifier: the same UUID is directly usable as the $resourceId of a later RequestedPermission, and as the resource id anywhere else in this SDK.

Table of Contents

Properties

$id  : string|null
$name  : string
$resourceScopes  : array<string|int, mixed>
$type  : string|null

Methods

__construct()  : mixed

Properties

$resourceScopes read-only

public array<string|int, mixed> $resourceScopes = []

Methods

__construct()

public __construct(string $name[, string|null $id = null ][, string|null $type = null ][, array<int, string> $resourceScopes = [] ]) : mixed
Parameters
$name : string

Human-readable name, shown in the admin UI.

$id : string|null = null

Assigned by the server on registration; null on the way in.

$type : string|null = null

Free-form resource type. Defaults server-side to uma_resource when null, so a resource server that omits it does not produce a row that sorts oddly next to hand-made ones.

$resourceScopes : array<int, string> = []

The scope names a resource server may ask for on this resource. Replaced wholesale by an update, never merged (§20.2 rule 8) — this SDK does not read the current scopes and fold them into an update payload as a convenience, because that would make removing a scope impossible through it.

On this page

Search results