PHP Interface PhpParser\Node\FunctionLike

Inheritance: extends PhpParser\Node
Show file Open project: nikic/PHP-Parser Interface Usage Examples

Public Methods

Method Description
getParams ( ) : Param[] List of parameters
getReturnType ( ) : null | string | Name | NullableType Get the declared return type or null
getStmts ( ) : PhpParser\Node\Stmt[] The function body
returnsByRef ( ) : boolean Whether to return by reference

Method Details

getParams() public method

List of parameters
public getParams ( ) : Param[]
return Param[]

getReturnType() public method

Get the declared return type or null
public getReturnType ( ) : null | string | Name | NullableType
return null | string | Name | NullableType

getStmts() public method

The function body
public getStmts ( ) : PhpParser\Node\Stmt[]
return PhpParser\Node\Stmt[]

returnsByRef() public method

Whether to return by reference
public returnsByRef ( ) : boolean
return boolean