Methods
__construct()
__construct(string $name, array $parameters, int $flags, string $body, \Zend\Code\Generator\DocBlockGenerator | string $docBlock)
Parameters
$name
string
$parameters
array
$flags
int
$body
string
__toString()
__toString()
Generate from array
fromArray(array $array) : \Zend\Code\Generator\MethodGenerator
configkey |
name string [required] Class Name |
configkey |
docblock string The docblock information |
configkey |
flags int Flags, one of MethodGenerator::FLAG_ABSTRACT MethodGenerator::FLAG_FINAL |
configkey |
parameters string Class which this class is extending |
configkey |
body string |
configkey |
abstract bool |
configkey |
final bool |
configkey |
static bool |
configkey |
visibility string |
Parameters
$array
array
Exceptions
Returns
generate()
generate() : string
getBody()
getBody() : string
getIndentation()
getIndentation() : string
Inherited
inherited_from |
\Zend\Code\Generator\AbstractGenerator::getIndentation() |
inherited_from |
\Zend\Code\Generator\AbstractMemberGenerator::getIndentation() |
Returns
string
getName()
getName() : string
Inherited
inherited_from |
\Zend\Code\Generator\AbstractMemberGenerator::getName() |
Returns
string
getSourceContent()
getSourceContent() : string
Inherited
inherited_from |
\Zend\Code\Generator\AbstractGenerator::getSourceContent() |
inherited_from |
\Zend\Code\Generator\AbstractMemberGenerator::getSourceContent() |
Returns
string
getVisibility()
getVisibility() : string
Inherited
inherited_from |
\Zend\Code\Generator\AbstractMemberGenerator::getVisibility() |
Returns
string
isAbstract()
isAbstract() : bool
Inherited
inherited_from |
\Zend\Code\Generator\AbstractMemberGenerator::isAbstract() |
Returns
bool
isFinal()
isFinal() : bool
Inherited
inherited_from |
\Zend\Code\Generator\AbstractMemberGenerator::isFinal() |
Returns
bool
isSourceDirty()
isSourceDirty() : bool
Inherited
inherited_from |
\Zend\Code\Generator\AbstractGenerator::isSourceDirty() |
inherited_from |
\Zend\Code\Generator\AbstractMemberGenerator::isSourceDirty() |
Returns
bool
isStatic()
isStatic() : bool
Inherited
inherited_from |
\Zend\Code\Generator\AbstractMemberGenerator::isStatic() |
Returns
bool
setBody()
setBody(string $body) : \Zend\Code\Generator\MethodGenerator
Parameters
$body
string
Returns
setIndentation()
setIndentation(string $indentation) : \Zend\Code\Generator\AbstractGenerator
Inherited
inherited_from |
\Zend\Code\Generator\AbstractGenerator::setIndentation() |
inherited_from |
\Zend\Code\Generator\AbstractMemberGenerator::setIndentation() |
Parameters
$indentation
string
Returns
setOptions()
setOptions(array | \Traversable $options) : \Zend\Code\Generator\AbstractGenerator
Inherited
inherited_from |
\Zend\Code\Generator\AbstractGenerator::setOptions() |
inherited_from |
\Zend\Code\Generator\AbstractMemberGenerator::setOptions() |
Parameters
$options
array\Traversable
Exceptions
Returns
setSourceContent()
setSourceContent(string $sourceContent) : \Zend\Code\Generator\AbstractGenerator
Inherited
inherited_from |
\Zend\Code\Generator\AbstractGenerator::setSourceContent() |
inherited_from |
\Zend\Code\Generator\AbstractMemberGenerator::setSourceContent() |
Parameters
$sourceContent
string
Returns
setSourceDirty()
setSourceDirty(bool $isSourceDirty) : \Zend\Code\Generator\AbstractGenerator
Inherited
inherited_from |
\Zend\Code\Generator\AbstractGenerator::setSourceDirty() |
inherited_from |
\Zend\Code\Generator\AbstractMemberGenerator::setSourceDirty() |
Parameters
$isSourceDirty
bool
Returns
setVisibility()
setVisibility(string $visibility) : \Zend\Code\Generator\AbstractMemberGenerator
Inherited
inherited_from |
\Zend\Code\Generator\AbstractMemberGenerator::setVisibility() |
Parameters
$visibility
string
Returns
Identify the space indention from the first line and remove this indention
from all lines
clearBodyIndention(string $body) : string
Parameters
$body
string
Returns
string
Properties
$flags
$flags : int
Inherited
inherited_from |
\Zend\Code\Generator\AbstractMemberGenerator::$$flags |
<p>4 spaces by default</p>
$indentation : int | string
Inherited
inherited_from |
\Zend\Code\Generator\AbstractGenerator::$$indentation |
inherited_from |
\Zend\Code\Generator\AbstractMemberGenerator::$$indentation |
$isSourceDirty
$isSourceDirty : bool
Inherited
inherited_from |
\Zend\Code\Generator\AbstractGenerator::$$isSourceDirty |
inherited_from |
\Zend\Code\Generator\AbstractMemberGenerator::$$isSourceDirty |
$name
$name : string
Inherited
inherited_from |
\Zend\Code\Generator\AbstractMemberGenerator::$$name |
$sourceContent
$sourceContent : string
Inherited
inherited_from |
\Zend\Code\Generator\AbstractGenerator::$$sourceContent |
inherited_from |
\Zend\Code\Generator\AbstractMemberGenerator::$$sourceContent |
Constants
FLAG_ABSTRACT
FLAG_ABSTRACT
Inherited
inherited_from |
\Zend\Code\Generator\AbstractMemberGenerator::FLAG_ABSTRACT |
FLAG_FINAL
FLAG_FINAL
Inherited
inherited_from |
\Zend\Code\Generator\AbstractMemberGenerator::FLAG_FINAL |
FLAG_PRIVATE
FLAG_PRIVATE
Inherited
inherited_from |
\Zend\Code\Generator\AbstractMemberGenerator::FLAG_PRIVATE |
FLAG_PROTECTED
FLAG_PROTECTED
Inherited
inherited_from |
\Zend\Code\Generator\AbstractMemberGenerator::FLAG_PROTECTED |
FLAG_PUBLIC
FLAG_PUBLIC
Inherited
inherited_from |
\Zend\Code\Generator\AbstractMemberGenerator::FLAG_PUBLIC |
FLAG_STATIC
FLAG_STATIC
Inherited
inherited_from |
\Zend\Code\Generator\AbstractMemberGenerator::FLAG_STATIC |
Line feed to use in place of EOL
LINE_FEED
Inherited
inherited_from |
\Zend\Code\Generator\AbstractGenerator::LINE_FEED |
inherited_from |
\Zend\Code\Generator\AbstractMemberGenerator::LINE_FEED |
VISIBILITY_PRIVATE
VISIBILITY_PRIVATE
Inherited
inherited_from |
\Zend\Code\Generator\AbstractMemberGenerator::VISIBILITY_PRIVATE |
VISIBILITY_PROTECTED
VISIBILITY_PROTECTED
Inherited
inherited_from |
\Zend\Code\Generator\AbstractMemberGenerator::VISIBILITY_PROTECTED |
VISIBILITY_PUBLIC
VISIBILITY_PUBLIC
Inherited
inherited_from |
\Zend\Code\Generator\AbstractMemberGenerator::VISIBILITY_PUBLIC |