Migrator
in package
Migrator is a class for performing a technology migration.
This class is not intended to be instanced directly, but instead should be constructed using the MigratorBuilder.
Table of Contents
- __construct() : mixed
- read() : OperationResult
- Uses the provided flag key and context to execute a migration-backed read operation.
- write() : WriteResult
- Uses the provided flag key and context to execute a migration-backed write operation.
Methods
__construct()
public
__construct(LDClient $client, ExecutionOrder $executionOrder, MigrationConfig $readConfig, MigrationConfig $writeConfig, bool $trackLatency, bool $trackErrors) : mixed
Parameters
- $client : LDClient
- $executionOrder : ExecutionOrder
- $readConfig : MigrationConfig
- $writeConfig : MigrationConfig
- $trackLatency : bool
- $trackErrors : bool
Return values
mixed —read()
Uses the provided flag key and context to execute a migration-backed read operation.
public
read(string $key, LDContext $context, Stage $defaultStage[, mixed $payload = null ]) : OperationResult
Parameters
Return values
OperationResult —write()
Uses the provided flag key and context to execute a migration-backed write operation.
public
write(string $key, LDContext $context, Stage $defaultStage[, mixed $payload = null ]) : WriteResult