ToggleConfig
Table of Contents
-
DRIVER_CHAIN
= 'chain'
-
DRIVER_DBAL
= 'dbal'
-
DRIVER_IN_MEMORY
= 'inmemory'
-
VALID_DRIVER_OPTIONS
= [self::DRIVER_IN_MEMORY, self::DRIVER_DBAL]
-
VALID_DRIVERS
= [self::DRIVER_IN_MEMORY, self::DRIVER_DBAL, self::DRIVER_CHAIN]
-
$apiEnabled
: bool
-
$apiPrefix
: string
-
$driver
: string
-
$driverOptions
: array<string|int, string>
-
$segmentTypes
: array<string|int, mixed>
-
$strategyTypes
: array<string|int, mixed>
-
$toggles
: array<string|int, mixed>
-
__construct()
: mixed
-
apiEnabled()
: bool
-
apiPrefix()
: string
-
driver()
: string
-
driverOptions()
: array<string|int, string>
-
segmentTypes()
: array<string|int, array<string, string>>
-
strategyTypes()
: array<string|int, array<string, string>>
-
toggles()
: array<string, mixed>
-
assertDriver()
: void
-
assertDriverOptions()
: void
DRIVER_CHAIN
public
mixed
DRIVER_CHAIN
= 'chain'
DRIVER_DBAL
public
mixed
DRIVER_DBAL
= 'dbal'
DRIVER_IN_MEMORY
public
mixed
DRIVER_IN_MEMORY
= 'inmemory'
VALID_DRIVER_OPTIONS
private
mixed
VALID_DRIVER_OPTIONS
= [self::DRIVER_IN_MEMORY, self::DRIVER_DBAL]
VALID_DRIVERS
private
mixed
VALID_DRIVERS
= [self::DRIVER_IN_MEMORY, self::DRIVER_DBAL, self::DRIVER_CHAIN]
$apiEnabled
private
bool
$apiEnabled
$apiPrefix
private
string
$apiPrefix
$driver
private
string
$driver
$driverOptions
private
array<string|int, string>
$driverOptions
$segmentTypes
private
array<string|int, mixed>
$segmentTypes
$strategyTypes
private
array<string|int, mixed>
$strategyTypes
$toggles
private
array<string|int, mixed>
$toggles
__construct()
public
__construct(array<string, mixed> $config) : mixed
Parameters
-
$config
: array<string, mixed>
-
Return values
mixed
—
apiEnabled()
public
apiEnabled() : bool
Return values
bool
—
apiPrefix()
public
apiPrefix() : string
Return values
string
—
driver()
public
driver() : string
Return values
string
—
driverOptions()
public
driverOptions() : array<string|int, string>
Return values
array<string|int, string>
—
segmentTypes()
public
segmentTypes() : array<string|int, array<string, string>>
Return values
array<string|int, array<string, string>>
—
strategyTypes()
public
strategyTypes() : array<string|int, array<string, string>>
Return values
array<string|int, array<string, string>>
—
toggles()
public
toggles() : array<string, mixed>
Return values
array<string, mixed>
—
assertDriver()
private
assertDriver(array<string, mixed> $config) : void
Parameters
-
$config
: array<string, mixed>
-
Return values
void
—
assertDriverOptions()
private
assertDriverOptions(array<string, mixed> $config) : void
Parameters
-
$config
: array<string, mixed>
-
Return values
void
—