Documentation

Feature
in package
implements JsonSerializable

Interfaces, Classes and Traits

JsonSerializable

Table of Contents

$enabled  : bool
$events  : array<string|int, mixed>
$featureId  : FeatureId
$strategies  : array<string|int, mixed>
__construct()  : mixed
Feature constructor.
disable()  : void
enable()  : void
id()  : string
isEnabled()  : bool
jsonSerialize()  : array<string, mixed>
release()  : array<string|int, object>
remove()  : void
removeStrategy()  : void
setStrategy()  : void
strategies()  : array<string|int, Strategy>
withId()  : self

Properties

$events

private array<string|int, mixed> $events = []

$strategies

private array<string|int, mixed> $strategies = []

Methods

__construct()

Feature constructor.

public __construct(FeatureId $featureId, bool $enabled[, array<string|int, Strategy$strategies = [] ]) : mixed
Parameters
$featureId : FeatureId
$enabled : bool
$strategies : array<string|int, Strategy> = []
Return values
mixed

disable()

public disable() : void
Return values
void

enable()

public enable() : void
Return values
void

id()

public id() : string
Return values
string

isEnabled()

public isEnabled() : bool
Return values
bool

jsonSerialize()

public jsonSerialize() : array<string, mixed>
Return values
array<string, mixed>

release()

public release() : array<string|int, object>
Return values
array<string|int, object>

remove()

public remove() : void
Return values
void

Search results