WorkOS PHP SDK

FlagTargetWithRuleId
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.
$ruleId  : string
The ID of the rule this target belongs to.
$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.

Methods

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

Properties

$environmentId

The ID of the environment the Flag Target belongs to.

public string $environmentId

$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

Methods

__construct()

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

toArray()

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

Search results