AuthorizationResource
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 Resource.
- $externalId : string
- An identifier you provide to reference the resource in your system.
- $id : string
- The unique ID of the Resource.
- $name : string
- A human-readable name for the Resource.
- $object : string
- Distinguishes the Resource object.
- $organizationId : string
- The ID of the organization that owns the resource.
- $parentResourceId : string|null
- The ID of the parent resource, if this resource is nested.
- $resourceTypeSlug : string
- The slug of the resource type this resource belongs to.
- $updatedAt : DateTimeImmutable
- An ISO 8601 timestamp.
Methods
- __construct() : mixed
- fromArray() : self
- jsonSerialize() : array<string|int, mixed>
- toArray() : array<string|int, mixed>
Properties
$createdAt
An ISO 8601 timestamp.
public
DateTimeImmutable
$createdAt
$description
An optional description of the Resource.
public
string|null
$description
$externalId
An identifier you provide to reference the resource in your system.
public
string
$externalId
$id
The unique ID of the Resource.
public
string
$id
$name
A human-readable name for the Resource.
public
string
$name
$object
Distinguishes the Resource object.
public
string
$object
$organizationId
The ID of the organization that owns the resource.
public
string
$organizationId
$parentResourceId
The ID of the parent resource, if this resource is nested.
public
string|null
$parentResourceId
$resourceTypeSlug
The slug of the resource type this resource belongs to.
public
string
$resourceTypeSlug
$updatedAt
An ISO 8601 timestamp.
public
DateTimeImmutable
$updatedAt
Methods
__construct()
public
__construct(string $object, string $name, string|null $description, string $organizationId, string|null $parentResourceId, string $id, string $externalId, string $resourceTypeSlug, DateTimeImmutable $createdAt, DateTimeImmutable $updatedAt) : mixed
Parameters
- $object : string
- $name : string
- $description : string|null
- $organizationId : string
- $parentResourceId : string|null
- $id : string
- $externalId : string
- $resourceTypeSlug : string
- $createdAt : DateTimeImmutable
- $updatedAt : DateTimeImmutable
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>