EvaluatingGeneratorStrategy
in package
implements
GeneratorStrategyInterface
Generator strategy that produces the code and evaluates it at runtime
Interfaces, Classes, Traits and Enums
- GeneratorStrategyInterface
- Generator strategy interface - defines basic behavior of class generators
Table of Contents
- $canEval : bool
- __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
Return values
mixed —generate()
Evaluates the generated code before returning it
public
generate(ClassGenerator $classGenerator) : string
Parameters
- $classGenerator : ClassGenerator