MethodBuilder extends AbstractBuilder Uses RoutineBuilderPart
Table of Contents
- $generator : ModelGenerator
- $config : GeneratorConfig
- $writer : Writer
- __construct() : mixed
- build() : void
- buildDocblock() : void
- ensureBlankLine() : void
- generate() : void
- getConfig() : GeneratorConfig
- getWriter() : Writer
- writeBody() : void
- writeFunctionReturnType() : void
- writeFunctionStatement() : void
- writeParameters() : void
- discoverThis() : void
- Discover the class relative to the `$this` notation.
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 —writeBody()
protected
writeBody(RoutineInterface $model) : void
Parameters
- $model : RoutineInterface
Return values
void —writeFunctionReturnType()
protected
writeFunctionReturnType(RoutineInterface $model) : void
Parameters
- $model : RoutineInterface
Tags
Return values
void —writeFunctionStatement()
protected
writeFunctionStatement(RoutineInterface $model) : void
Parameters
- $model : RoutineInterface
Return values
void —writeParameters()
protected
writeParameters(RoutineInterface $model) : void
Parameters
- $model : RoutineInterface
Return values
void —discoverThis()
Discover the class relative to the `$this` notation.
private
discoverThis(PhpMethod $method) : void
Parameters
- $method : PhpMethod