MethodNode
in package
Method node.
Tags
Table of Contents
- $arguments : array<string|int, ArgumentNode>
- $code : mixed
- $name : mixed
- $nullableReturnType : mixed
- $returnsReference : mixed
- $returnType : mixed
- $static : mixed
- $typeHintReference : TypeHintReference
- $visibility : mixed
- __construct() : mixed
- addArgument() : mixed
- getArguments() : array<string|int, ArgumentNode>
- getCode() : mixed
- getName() : mixed
- getReturnType() : mixed
- getVisibility() : mixed
- hasNullableReturnType() : bool
- hasReturnType() : mixed
- isStatic() : mixed
- returnsReference() : mixed
- setCode() : mixed
- setNullableReturnType() : mixed
- setReturnsReference() : mixed
- setReturnType() : mixed
- 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
$nullableReturnType
private
mixed
$nullableReturnType
= false
$returnsReference
private
mixed
$returnsReference
= false
$returnType
private
mixed
$returnType
$static
private
mixed
$static
= false
$typeHintReference
private
TypeHintReference
$typeHintReference
$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() : mixed
Return values
mixed —getVisibility()
public
getVisibility() : mixed
Return values
mixed —hasNullableReturnType()
public
hasNullableReturnType() : bool
Return values
bool —hasReturnType()
public
hasReturnType() : mixed
Return values
mixed —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
Return values
mixed —setReturnsReference()
public
setReturnsReference() : mixed
Return values
mixed —setReturnType()
public
setReturnType([string $type = null ]) : mixed
Parameters
- $type : string = null
Return values
mixed —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