CreateOrganizationApiKey
in package
implements
JsonSerializable
uses
JsonSerializableTrait
Read onlyYes
Table of Contents
Interfaces
- JsonSerializable
Properties
- $name : string
- The name for the API key.
- $permissions : array<string|int, string>|null
- The permission slugs to assign to the API key.
Methods
- __construct() : mixed
- fromArray() : self
- jsonSerialize() : array<string|int, mixed>
- toArray() : array<string|int, mixed>
Properties
$name
The name for the API key.
public
string
$name
$permissions
The permission slugs to assign to the API key.
public
array<string|int, string>|null
$permissions
= null
Methods
__construct()
public
__construct(string $name[, array<string|int, mixed>|null $permissions = null ]) : mixed
Parameters
- $name : string
- $permissions : array<string|int, mixed>|null = null
fromArray()
public
static fromArray(array<string|int, mixed> $data) : self
Parameters
- $data : array<string|int, mixed>
Return values
selfjsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>toArray()
public
toArray() : array<string|int, mixed>