WorkOS PHP SDK

CreateAuthorizationPermission
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

Table of Contents

Interfaces

JsonSerializable

Properties

$description  : string|null
An optional description of the Permission.
$name  : string
A descriptive name for the Permission.
$resourceTypeSlug  : string|null
The slug of the resource type this permission is scoped to.
$slug  : string
A unique key to reference the permission. Must be lowercase and contain only letters, numbers, hyphens, underscores, colons, periods, and asterisks.

Methods

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

Properties

$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

Methods

__construct()

public __construct(string $slug, string $name[, string|null $description = null ][, string|null $resourceTypeSlug = null ]) : mixed
Parameters
$slug : string
$name : string
$description : string|null = null
$resourceTypeSlug : string|null = null

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