WorkOS PHP SDK

RoleAssignmentResource
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

The resource to which the role is assigned.

Table of Contents

Interfaces

JsonSerializable

Properties

$externalId  : string
An identifier you provide to reference the resource in your system.
$id  : string
The unique ID of the Resource.
$resourceTypeSlug  : string
The slug of the resource type this resource belongs to.

Methods

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

Properties

$externalId

An identifier you provide to reference the resource in your system.

public string $externalId

$resourceTypeSlug

The slug of the resource type this resource belongs to.

public string $resourceTypeSlug

Methods

__construct()

public __construct(string $id, string $externalId, string $resourceTypeSlug) : mixed
Parameters
$id : string
$externalId : string
$resourceTypeSlug : string

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