Fully Qualified Name: | Laminas\Code\Generator\MethodGenerator |
Extends: | AbstractMemberGenerator |
Parameter Name | Type | Description |
---|---|---|
$name | string | |
$parameters | array | |
$flags | int | |
$body | string | |
$docBlock | \DocBlockGenerator|string |
Returns:
Returns: void
Parameter Name | Type | Description |
---|---|---|
$flag | int |
Returns: \AbstractMemberGenerator
Returns a MethodGenerator based on a MethodReflection with only the signature copied.
This is similar to fromReflection() but without the method body and phpdoc as this is quite heavy to copy. It's for example useful when creating proxies where you normally change the method body anyway.
Parameter Name | Type | Description |
---|---|---|
$reflectionMethod |
Returns:
Generate from array
Parameter Name | Type | Description |
---|---|---|
$array | array |
Returns: \MethodGenerator
Parameter Name | Type | Description |
---|---|---|
$reflectionMethod | \MethodReflection |
Returns: \MethodGenerator
Returns: string
Returns: string
Returns: \DocBlockGenerator|null
Returns: string
Returns: string
Returns: \ParameterGenerator[]
Returns: \TypeGenerator|null
Returns: string
Returns: string
Returns: bool
Returns: bool
Returns: bool
Returns: bool
Returns: bool
Returns: void
Parameter Name | Type | Description |
---|---|---|
$flag | int |
Returns: \AbstractMemberGenerator
Parameter Name | Type | Description |
---|---|---|
$isAbstract | bool |
Returns: \AbstractMemberGenerator
Parameter Name | Type | Description |
---|---|---|
$body | string |
Returns: \MethodGenerator
Parameter Name | Type | Description |
---|---|---|
$docBlock | \DocBlockGenerator|string |
Returns: \AbstractMemberGenerator
Parameter Name | Type | Description |
---|---|---|
$isFinal | bool |
Returns: \AbstractMemberGenerator
Parameter Name | Type | Description |
---|---|---|
$flags | int|array |
Returns: \AbstractMemberGenerator
Parameter Name | Type | Description |
---|---|---|
$indentation | string |
Returns: \AbstractGenerator
Parameter Name | Type | Description |
---|---|---|
$isInterface | bool |
Returns: \AbstractMemberGenerator
Parameter Name | Type | Description |
---|---|---|
$name | string |
Returns: \AbstractMemberGenerator
Parameter Name | Type | Description |
---|---|---|
$options | array|\Traversable |
Returns: \AbstractGenerator
Parameter Name | Type | Description |
---|---|---|
$parameter | \ParameterGenerator|array|string |
Returns: \MethodGenerator
Parameter Name | Type | Description |
---|---|---|
$parameters | array |
Returns: \MethodGenerator
Parameter Name | Type | Description |
---|---|---|
$returnType | string|null |
Returns: \MethodGenerator
Parameter Name | Type | Description |
---|---|---|
$returnsReference | bool |
Returns: \MethodGenerator
Parameter Name | Type | Description |
---|---|---|
$sourceContent | string |
Returns: \AbstractGenerator
Parameter Name | Type | Description |
---|---|---|
$isSourceDirty | bool |
Returns: \AbstractGenerator
Parameter Name | Type | Description |
---|---|---|
$isStatic | bool |
Returns: \AbstractMemberGenerator
Parameter Name | Type | Description |
---|---|---|
$visibility | string |
Returns: \AbstractMemberGenerator