WorkOS PHP SDK

FlagUpdatedData
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

The event payload.

Table of Contents

Interfaces

JsonSerializable

Properties

$createdAt  : DateTimeImmutable
An ISO 8601 timestamp.
$defaultValue  : bool
The value returned for users and organizations who don't match any configured targeting rules.
$description  : string|null
A description for the Feature Flag.
$enabled  : bool
Specifies whether the Feature Flag is active for the current environment.
$environmentId  : string
The ID of the environment the Feature Flag belongs to.
$id  : string
Unique identifier of the Feature Flag.
$name  : string
A descriptive name for the Feature Flag.
$object  : string
$owner  : FlagUpdatedDataOwner|null
The owner of the Feature Flag.
$slug  : string
A unique key to reference the Feature Flag.
$tags  : array<string|int, string>
Labels assigned to the Feature Flag for categorizing and filtering.
$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

$defaultValue

The value returned for users and organizations who don't match any configured targeting rules.

public bool $defaultValue

$description

A description for the Feature Flag.

public string|null $description

$enabled

Specifies whether the Feature Flag is active for the current environment.

public bool $enabled

$environmentId

The ID of the environment the Feature Flag belongs to.

public string $environmentId

$slug

A unique key to reference the Feature Flag.

public string $slug

$tags

Labels assigned to the Feature Flag for categorizing and filtering.

public array<string|int, string> $tags

$updatedAt

An ISO 8601 timestamp.

public DateTimeImmutable $updatedAt

Methods

__construct()

public __construct(string $object, string $id, string $environmentId, string $slug, string $name, string|null $description, FlagUpdatedDataOwner|null $owner, array<string|int, mixed> $tags, bool $enabled, bool $defaultValue, DateTimeImmutable $createdAt, DateTimeImmutable $updatedAt) : mixed
Parameters
$object : string
$id : string
$environmentId : string
$slug : string
$name : string
$description : string|null
$owner : FlagUpdatedDataOwner|null
$tags : array<string|int, mixed>
$enabled : bool
$defaultValue : bool
$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