| Methods |
public
|
__construct(
Function_ $function,
list<ReturnStatement> $returnStatements,
list<ReturnStatement> $returnStatementsAfterFinally,
list<Yield_|YieldFrom> $yieldStatements,
StatementResult $statementResult,
list<ExecutionEndNode> $executionEnds,
ImpurePoint[] $impurePoints,
PhpFunctionFromParserNodeReflection $functionReflection,
)
Parameters
| $function |
Array of attributes
|
Overrides
|
#
|
public
|
getReturnStatements(): array
|
#
|
public
|
getReturnStatementsAfterFinally(): array
Return statements from try or catch blocks, with the scope updated
by the changes made in the following finally block. Only relevant for functions returning by reference - the value the caller
receives is read after the finally block has run.
Return statements from try or catch blocks, with the scope updated
by the changes made in the following finally block. Only relevant for functions returning by reference - the value the caller
receives is read after the finally block has run.
Implements
|
#
|
public
|
getStatementResult(): StatementResult
|
#
|
public
|
getExecutionEnds(): array
|
#
|
public
|
getImpurePoints(): array
|
#
|
public
|
returnsByRef(): bool
|
#
|
public
|
hasNativeReturnTypehint(): bool
|
#
|
public
|
getYieldStatements(): array
|
#
|
public
|
isGenerator(): bool
|
#
|
public
|
getType(): string
Gets the type of the node.
Gets the type of the node.
Returns
Implements
|
#
|
public
|
getSubNodeNames(): string[]
Gets the names of the sub nodes.
Gets the names of the sub nodes.
Returns
Implements
|
#
|
public
|
getFunctionReflection(): PhpFunctionFromParserNodeReflection
|
#
|
public
|
getStatements(): Stmt[]
|
#
|