WorkOS PHP SDK

AuthorizationPermission
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

Table of Contents

Interfaces

JsonSerializable

Properties

$createdAt  : DateTimeImmutable
An ISO 8601 timestamp.
$description  : string|null
An optional description of the Permission.
$id  : string
Unique identifier of the Permission.
$name  : string
A descriptive name for the Permission.
$object  : string
Distinguishes the Permission object.
$resourceTypeSlug  : string
The slug of the resource type associated with the permission.
$slug  : string
A unique key to reference the permission. Must be lowercase and contain only letters, numbers, hyphens, underscores, colons, periods, and asterisks.
$system  : bool
Whether the permission is a system permission. System permissions are managed by WorkOS and cannot be deleted.
$updatedAt  : DateTimeImmutable
An ISO 8601 timestamp.

Methods

__construct()  : mixed
fromArray()  : self
jsonSerialize()  : array<string|int, mixed>
toArray()  : array<string|int, mixed>

Properties

$resourceTypeSlug

The slug of the resource type associated with the permission.

public string $resourceTypeSlug

$slug

A unique key to reference the permission. Must be lowercase and contain only letters, numbers, hyphens, underscores, colons, periods, and asterisks.

public string $slug

$system

Whether the permission is a system permission. System permissions are managed by WorkOS and cannot be deleted.

public bool $system

Methods

__construct()

public __construct(string $object, string $id, string $slug, string $name, string|null $description, bool $system, string $resourceTypeSlug, DateTimeImmutable $createdAt, DateTimeImmutable $updatedAt) : mixed
Parameters
$object : string
$id : string
$slug : string
$name : string
$description : string|null
$system : bool
$resourceTypeSlug : string
$createdAt : DateTimeImmutable
$updatedAt : DateTimeImmutable

fromArray()

public static fromArray(array<string|int, mixed> $data) : self
Parameters
$data : array<string|int, mixed>
Return values
self

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results