FeatureFlag
in package
implements
JsonSerializable
uses
JsonSerializableTrait
Read onlyYes
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.
- $id : string
- Unique identifier of the Feature Flag.
- $name : string
- A descriptive name for the Feature Flag. This field does not need to be unique.
- $object : string
- Distinguishes the Feature Flag object.
- $owner : FeatureFlagOwner|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
$id
Unique identifier of the Feature Flag.
public
string
$id
$name
A descriptive name for the Feature Flag. This field does not need to be unique.
public
string
$name
$object
Distinguishes the Feature Flag object.
public
string
$object
$owner
The owner of the Feature Flag.
public
FeatureFlagOwner|null
$owner
$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 $slug, string $name, string|null $description, FeatureFlagOwner|null $owner, array<string|int, mixed> $tags, bool $enabled, bool $defaultValue, DateTimeImmutable $createdAt, DateTimeImmutable $updatedAt) : mixed
Parameters
- $object : string
- $id : string
- $slug : string
- $name : string
- $description : string|null
- $owner : FeatureFlagOwner|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
selfjsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>toArray()
public
toArray() : array<string|int, mixed>