ModelGenerator
Model Generator.
Tags
Table of Contents
- $config : GeneratorConfig
- $factory : BuilderFactory
- $writer : Writer
- __construct() : mixed
- generate() : string
- getConfig() : GeneratorConfig
- getFactory() : BuilderFactory
- getWriter() : Writer
Properties
$config
private
GeneratorConfig
$config
$factory
private
BuilderFactory
$factory
$writer
private
Writer
$writer
Methods
__construct()
public
__construct(GeneratorConfig $config) : mixed
Parameters
- $config : GeneratorConfig
Return values
mixed —generate()
public
generate(AbstractModel $model) : string
Parameters
- $model : AbstractModel
Return values
string —getConfig()
public
getConfig() : GeneratorConfig
Return values
GeneratorConfig —getFactory()
public
getFactory() : BuilderFactory
Return values
BuilderFactory —getWriter()
public
getWriter() : Writer