ConstantBuilder extends AbstractBuilder Uses ValueBuilderPart
Table of Contents
- $generator : ModelGenerator
- $config : GeneratorConfig
- $writer : Writer
- __construct() : mixed
- build() : void
- buildDocblock() : void
- ensureBlankLine() : void
- generate() : void
- getConfig() : GeneratorConfig
- getWriter() : Writer
- exportVar() : mixed|string
- writeValue() : void
Properties
$generator
protected
ModelGenerator
$generator
$config
private
GeneratorConfig
$config
$writer
private
Writer
$writer
Methods
__construct()
public
__construct(ModelGenerator $generator) : mixed
Parameters
- $generator : ModelGenerator
Return values
mixed —build()
public
build(AbstractModel $model) : void
Parameters
- $model : AbstractModel
Return values
void —buildDocblock()
protected
buildDocblock(DocblockInterface $model) : void
Parameters
- $model : DocblockInterface
Return values
void —ensureBlankLine()
protected
ensureBlankLine() : void
Return values
void —generate()
protected
generate(AbstractModel $model) : void
Parameters
- $model : AbstractModel
Return values
void —getConfig()
protected
getConfig() : GeneratorConfig
Return values
GeneratorConfig —getWriter()
protected
getWriter() : Writer
Return values
Writer —exportVar()
private
exportVar(mixed $value) : mixed|string
Parameters
- $value : mixed
Return values
mixed|string —writeValue()
private
writeValue(ValueInterface $model) : void
Parameters
- $model : ValueInterface