WorkOS PHP SDK

Team
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

Table of Contents

Interfaces

JsonSerializable

Properties

$createdAt  : DateTimeImmutable
The timestamp when the team was created.
$id  : string
Unique identifier of the team.
$name  : string
The name of the team.
$object  : string
Distinguishes the team object.
$productionEnabledAt  : DateTimeImmutable|null
The timestamp when production was enabled for the team, or `null` if it never has been.
$productionState  : TeamProductionState
Whether the team can host production environments. `Active` means billing is set up. `Inactive` means a team admin must add a payment method in the WorkOS Dashboard. `Suspended` and `Deleting` mean the team can't be provisioned into.
$updatedAt  : DateTimeImmutable
The timestamp when the team was last updated.

Methods

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

Properties

$createdAt

The timestamp when the team was created.

public DateTimeImmutable $createdAt

$id

Unique identifier of the team.

public string $id

$name

The name of the team.

public string $name

$object

Distinguishes the team object.

public string $object

$productionEnabledAt

The timestamp when production was enabled for the team, or `null` if it never has been.

public DateTimeImmutable|null $productionEnabledAt

$productionState

Whether the team can host production environments. `Active` means billing is set up. `Inactive` means a team admin must add a payment method in the WorkOS Dashboard. `Suspended` and `Deleting` mean the team can't be provisioned into.

public TeamProductionState $productionState

$updatedAt

The timestamp when the team was last updated.

public DateTimeImmutable $updatedAt

Methods

__construct()

public __construct(string $object, string $id, string $name, TeamProductionState $productionState, DateTimeImmutable|null $productionEnabledAt, DateTimeImmutable $createdAt, DateTimeImmutable $updatedAt) : mixed
Parameters
$object : string
$id : string
$name : string
$productionState : TeamProductionState
$productionEnabledAt : DateTimeImmutable|null
$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>

toArray()

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>
On this page

Search results