FileWriterGeneratorStrategy
in package
implements
GeneratorStrategyInterface
Generator strategy that writes the generated classes to disk while generating them
Table of Contents
Interfaces
- GeneratorStrategyInterface
- Generator strategy interface - defines basic behavior of class generators
Properties
- $fileLocator : mixed
- $emptyErrorHandler : mixed
Methods
- __construct() : mixed
- generate() : string
- Write generated code to disk and return the class code
Properties
$fileLocator
protected
mixed
$fileLocator
$emptyErrorHandler
private
mixed
$emptyErrorHandler
Methods
__construct()
public
__construct(FileLocatorInterface $fileLocator) : mixed
Parameters
- $fileLocator : FileLocatorInterface
generate()
Write generated code to disk and return the class code
public
generate(ClassGenerator $classGenerator) : string
Parameters
- $classGenerator : ClassGenerator