FlagTarget
in package
implements
JsonSerializable
uses
JsonSerializableTrait
Read onlyYes
Table of Contents
Interfaces
- JsonSerializable
Properties
- $createdAt : DateTimeImmutable|null
- An ISO 8601 timestamp.
- $environmentId : string|null
- The ID of the environment the Flag Target belongs to.
- $flagId : string|null
- The ID of the Feature Flag the target belongs to.
- $flagSlug : string|null
- The slug of the Feature Flag the target belongs to, which is how the Feature Flag endpoints address it.
- $id : string|null
- Unique identifier of the Flag Target.
- $object : string|null
- Distinguishes the Flag Target object.
- $ruleId : string|null
- The ID of the rule this target belongs to.
- $targetId : string|null
- The ID of the targeted entity.
- $targetType : string|null
- The type of the target: `organization`, `user`, or a custom target type slug.
- $updatedAt : DateTimeImmutable|null
- An ISO 8601 timestamp.
- $value : bool|null
- The value the Feature Flag evaluates to for this target.
- $valueType : string|null
- 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
$createdAt
An ISO 8601 timestamp.
public
DateTimeImmutable|null
$createdAt
= null
$environmentId
The ID of the environment the Flag Target belongs to.
public
string|null
$environmentId
= null
$flagId
The ID of the Feature Flag the target belongs to.
public
string|null
$flagId
= null
$flagSlug
The slug of the Feature Flag the target belongs to, which is how the Feature Flag endpoints address it.
public
string|null
$flagSlug
= null
$id
Unique identifier of the Flag Target.
public
string|null
$id
= null
$object
Distinguishes the Flag Target object.
public
string|null
$object
= null
$ruleId
The ID of the rule this target belongs to.
public
string|null
$ruleId
= null
$targetId
The ID of the targeted entity.
public
string|null
$targetId
= null
$targetType
The type of the target: `organization`, `user`, or a custom target type slug.
public
string|null
$targetType
= null
$updatedAt
An ISO 8601 timestamp.
public
DateTimeImmutable|null
$updatedAt
= null
$value
The value the Feature Flag evaluates to for this target.
public
bool|null
$value
= null
$valueType
The type of `value`. Only `boolean` is supported today; additional types are reserved for future multivariate Feature Flags.
public
string|null
$valueType
= null
Methods
__construct()
public
__construct([string|null $object = null ][, string|null $id = null ][, string|null $flagId = null ][, string|null $flagSlug = null ][, string|null $environmentId = null ][, string|null $targetType = null ][, string|null $targetId = null ][, DateTimeImmutable|null $createdAt = null ][, DateTimeImmutable|null $updatedAt = null ][, string|null $ruleId = null ][, string|null $valueType = null ][, bool|null $value = null ]) : mixed
Parameters
- $object : string|null = null
- $id : string|null = null
- $flagId : string|null = null
- $flagSlug : string|null = null
- $environmentId : string|null = null
- $targetType : string|null = null
- $targetId : string|null = null
- $createdAt : DateTimeImmutable|null = null
- $updatedAt : DateTimeImmutable|null = null
- $ruleId : string|null = null
- $valueType : string|null = null
- $value : bool|null = null
fromArray()
public
static fromArray(array<string|int, mixed> $data) : self
Parameters
- $data : array<string|int, mixed>
Return values
selfjsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>toArray()
public
toArray() : array<string|int, mixed>