extends |
NodeAbstract |
---|---|
implements |
FunctionLike |
Methods | ||
---|---|---|
public
|
__construct(
string|Identifier $name,
null|Expr|Stmt[] $body,
array{flags?: int, byRef?: bool, params?: Param[], attrGroups?: AttributeGroup[]} $subNodes = [],
array<string, mixed> $attributes = [],
)
|
# |
public
|
returnsByRef(): bool
|
# |
public
|
getParams(): array
|
# |
public
|
getReturnType()
|
# |
public
|
getStmts(): ?array
|
# |
public
|
getAttrGroups(): array
|
# |
public
|
getType(): string
|
# |
public
|
getSubNodeNames(): array
|
# |
Properties | |||
---|---|---|---|
public
|
AttributeGroup[]
|
$attrGroups
|
# |
public
|
int
|
$flags
|
# |
public
|
bool
|
$byRef
|
# |
public
|
Identifier
|
$name
|
# |
public
|
Param[]
|
$params
|
# |
public
|
null|Expr|Stmt[]
|
$body
|
# |
Properties inherited from PhpParser\NodeAbstract |
---|
$attributes |