EvaluationContextConverter
in package
Converts an OpenFeature EvaluationContext into a LDContext.
Table of Contents
- __construct() : mixed
- setLogger() : void
- Sets a logger instance on the object.
- toLdContext() : LDContext
- Create an LDContext from an EvaluationContext.
Methods
__construct()
public
__construct(LoggerInterface $logger) : mixed
Parameters
- $logger : LoggerInterface
Return values
mixed —setLogger()
Sets a logger instance on the object.
public
setLogger(LoggerInterface $logger) : void
Parameters
- $logger : LoggerInterface
Return values
void —toLdContext()
Create an LDContext from an EvaluationContext.
public
toLdContext(EvaluationContext $evaluationContext) : LDContext
A context will always be created, but the created context may be invalid. Log messages will be written to indicate the source of the problem.
Parameters
- $evaluationContext : EvaluationContext