WorkOS PHP SDK

FlagTargetWithValueType
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

Table of Contents

Interfaces

JsonSerializable

Properties

$createdAt  : DateTimeImmutable
An ISO 8601 timestamp.
$environmentId  : string
The ID of the environment the Flag Target belongs to.
$flagId  : string
The ID of the Feature Flag the target belongs to.
$flagSlug  : string
The slug of the Feature Flag the target belongs to, which is how the Feature Flag endpoints address it.
$id  : string
Unique identifier of the Flag Target.
$object  : string
Distinguishes the Flag Target object.
$targetId  : string
The ID of the targeted entity.
$targetType  : string
The type of the target: `organization`, `user`, or a custom target type slug.
$updatedAt  : DateTimeImmutable
An ISO 8601 timestamp.
$value  : bool
The value the Feature Flag evaluates to for this target.
$valueType  : string
The type of `value`. Only `boolean` is supported today; additional types are reserved for future multivariate Feature Flags.

Methods

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

Properties

$flagSlug

The slug of the Feature Flag the target belongs to, which is how the Feature Flag endpoints address it.

public string $flagSlug

$targetType

The type of the target: `organization`, `user`, or a custom target type slug.

public string $targetType

$valueType

The type of `value`. Only `boolean` is supported today; additional types are reserved for future multivariate Feature Flags.

public string $valueType

Methods

__construct()

public __construct(string $object, string $id, string $flagId, string $flagSlug, string $environmentId, string $targetType, string $targetId, string $valueType, bool $value, DateTimeImmutable $createdAt, DateTimeImmutable $updatedAt) : mixed
Parameters
$object : string
$id : string
$flagId : string
$flagSlug : string
$environmentId : string
$targetType : string
$targetId : string
$valueType : string
$value : 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>
On this page

Search results