MethodNode
in package
Method node.
Tags
Table of Contents
- $arguments : array<string|int, ArgumentNode>
- $code : mixed
- $name : mixed
- $returnsReference : mixed
- $returnTypeNode : ReturnTypeNode
- $static : mixed
- $visibility : mixed
- __construct() : mixed
- addArgument() : mixed
- getArguments() : array<string|int, ArgumentNode>
- getCode() : mixed
- getName() : mixed
- getReturnType() : string|null
- getReturnTypeNode() : ReturnTypeNode
- getVisibility() : mixed
- hasNullableReturnType() : bool
- hasReturnType() : bool
- isStatic() : mixed
- returnsReference() : mixed
- setCode() : mixed
- setNullableReturnType() : mixed
- setReturnsReference() : mixed
- setReturnType() : mixed
- setReturnTypeNode() : void
- setStatic() : mixed
- setVisibility() : mixed
- useParentCode() : mixed
- generateArgument() : mixed
Properties
$arguments
private
array<string|int, ArgumentNode>
$arguments
= array()
$code
private
mixed
$code
$name
private
mixed
$name
$returnsReference
private
mixed
$returnsReference
= false
$returnTypeNode
private
ReturnTypeNode
$returnTypeNode
$static
private
mixed
$static
= false
$visibility
private
mixed
$visibility
= 'public'
Methods
__construct()
public
__construct(string $name[, string $code = null ][, TypeHintReference $typeHintReference = null ]) : mixed
Parameters
- $name : string
- $code : string = null
- $typeHintReference : TypeHintReference = null
Return values
mixed —addArgument()
public
addArgument(ArgumentNode $argument) : mixed
Parameters
- $argument : ArgumentNode
Return values
mixed —getArguments()
public
getArguments() : array<string|int, ArgumentNode>
Return values
array<string|int, ArgumentNode> —getCode()
public
getCode() : mixed
Return values
mixed —getName()
public
getName() : mixed
Return values
mixed —getReturnType()
public
getReturnType() : string|null
Tags
Return values
string|null —getReturnTypeNode()
public
getReturnTypeNode() : ReturnTypeNode
Return values
ReturnTypeNode —getVisibility()
public
getVisibility() : mixed
Return values
mixed —hasNullableReturnType()
public
hasNullableReturnType() : bool
Tags
Return values
bool —hasReturnType()
public
hasReturnType() : bool
Tags
Return values
bool —isStatic()
public
isStatic() : mixed
Return values
mixed —returnsReference()
public
returnsReference() : mixed
Return values
mixed —setCode()
public
setCode(string $code) : mixed
Parameters
- $code : string
Return values
mixed —setNullableReturnType()
public
setNullableReturnType([bool $bool = true ]) : mixed
Parameters
- $bool : bool = true
Tags
Return values
mixed —setReturnsReference()
public
setReturnsReference() : mixed
Return values
mixed —setReturnType()
public
setReturnType([string $type = null ]) : mixed
Parameters
- $type : string = null
Tags
Return values
mixed —setReturnTypeNode()
public
setReturnTypeNode(ReturnTypeNode $returnTypeNode) : void
Parameters
- $returnTypeNode : ReturnTypeNode
Return values
void —setStatic()
public
setStatic([mixed $static = true ]) : mixed
Parameters
- $static : mixed = true
Return values
mixed —setVisibility()
public
setVisibility(string $visibility) : mixed
Parameters
- $visibility : string
Return values
mixed —useParentCode()
public
useParentCode() : mixed
Return values
mixed —generateArgument()
private
generateArgument(ArgumentNode $arg) : mixed
Parameters
- $arg : ArgumentNode