StructBuilderPart
Table of Contents
- buildConstants() : void
- buildDocblock() : mixed
- buildHeader() : void
- buildMethods() : void
- buildNamespace() : void
- buildProperties() : void
- buildRequiredFiles() : void
- buildTraits() : void
- buildUseStatements() : void
- ensureBlankLine() : mixed
- generate() : mixed
- getConfig() : GeneratorConfig
- getWriter() : Writer
- sortConstants() : void
- sortMethods() : void
- sortProperties() : void
- sortUseStatements() : void
Methods
buildConstants()
protected
buildConstants(ConstantsInterface $model) : void
Parameters
- $model : ConstantsInterface
Return values
void —buildDocblock()
protected
abstract buildDocblock(DocblockInterface $model) : mixed
Parameters
- $model : DocblockInterface
Return values
mixed —buildHeader()
protected
buildHeader(AbstractPhpStruct $model) : void
Parameters
- $model : AbstractPhpStruct
Return values
void —buildMethods()
protected
buildMethods(AbstractPhpStruct $model) : void
Parameters
- $model : AbstractPhpStruct
Return values
void —buildNamespace()
protected
buildNamespace(NamespaceInterface $model) : void
Parameters
- $model : NamespaceInterface
Return values
void —buildProperties()
protected
buildProperties(PropertiesInterface $model) : void
Parameters
- $model : PropertiesInterface
Return values
void —buildRequiredFiles()
protected
buildRequiredFiles(AbstractPhpStruct $model) : void
Parameters
- $model : AbstractPhpStruct
Return values
void —buildTraits()
protected
buildTraits(TraitsInterface $model) : void
Parameters
- $model : TraitsInterface
Return values
void —buildUseStatements()
protected
buildUseStatements(AbstractPhpStruct $model) : void
Parameters
- $model : AbstractPhpStruct
Return values
void —ensureBlankLine()
protected
abstract ensureBlankLine() : mixed
Return values
mixed —generate()
protected
abstract generate(AbstractModel $model) : mixed
Parameters
- $model : AbstractModel
Return values
mixed —getConfig()
protected
abstract getConfig() : GeneratorConfig
Return values
GeneratorConfig —getWriter()
protected
abstract getWriter() : Writer
Return values
Writer —sortConstants()
private
sortConstants(ConstantsInterface $model) : void
Parameters
- $model : ConstantsInterface
Return values
void —sortMethods()
private
sortMethods(AbstractPhpStruct $model) : void
Parameters
- $model : AbstractPhpStruct
Return values
void —sortProperties()
private
sortProperties(PropertiesInterface $model) : void
Parameters
- $model : PropertiesInterface
Return values
void —sortUseStatements()
private
sortUseStatements(AbstractPhpStruct $model) : void
Parameters
- $model : AbstractPhpStruct