EvaluatingGeneratorStrategy
in package
implements
GeneratorStrategyInterface
Generator strategy that produces the code and evaluates it at runtime
Table of Contents
Interfaces
- GeneratorStrategyInterface
- Generator strategy interface - defines basic behavior of class generators
Properties
- $canEval : bool
Methods
- __construct() : mixed
- Constructor
- generate() : string
- Evaluates the generated code before returning it
Properties
$canEval
private
bool
$canEval
= true
flag indicating whether eval can be used
Methods
__construct()
Constructor
public
__construct() : mixed
generate()
Evaluates the generated code before returning it
public
generate(ClassGenerator $classGenerator) : string
Parameters
- $classGenerator : ClassGenerator