Methods |
abstract
public
|
__toString(): non-empty-string
|
#
|
abstract
public
|
getShortName(): non-empty-string
|
#
|
public
|
getName(): non-empty-string
Get the "full" name of the function (e.g. for A\B\foo, this will return
"A\B\foo").
Get the "full" name of the function (e.g. for A\B\foo, this will return
"A\B\foo").
|
#
|
public
|
getNamespaceName(): non-empty-string|null
Get the "namespace" name of the function (e.g. for A\B\foo, this will
return "A\B").
Get the "namespace" name of the function (e.g. for A\B\foo, this will
return "A\B").
|
#
|
public
|
inNamespace(): bool
Decide if this function is part of a namespace. Returns false if the class
is in the global namespace or does not haveā¦
Decide if this function is part of a namespace. Returns false if the class
is in the global namespace or does not have a specified namespace.
|
#
|
public
|
getNumberOfParameters(): positive-int|0
Get the number of parameters for this class.
Get the number of parameters for this class.
|
#
|
public
|
getNumberOfRequiredParameters(): positive-int|0
Get the number of required parameters for this method.
Get the number of required parameters for this method.
|
#
|
public
|
getParameters(): list<ReflectionParameter>
Get an array list of the parameters for this method signature, as an
array of ReflectionParameter instances.
Get an array list of the parameters for this method signature, as an
array of ReflectionParameter instances.
|
#
|
public
|
getParameter(non-empty-string $parameterName): ?ReflectionParameter
Get a single parameter by name. Returns null if parameter not found for
the function.
Get a single parameter by name. Returns null if parameter not found for
the function.
|
#
|
public
|
getDocComment(): non-empty-string|null
|
#
|
public
|
getFileName(): non-empty-string|null
|
#
|
public
|
getLocatedSource(): LocatedSource
|
#
|
public
|
isClosure(): bool
Is this function a closure?
Is this function a closure?
|
#
|
public
|
isDeprecated(): bool
|
#
|
public
|
isInternal(): bool
|
#
|
public
|
isUserDefined(): bool
Is this a user-defined function (will always return the opposite of
whatever isInternal returns).
Is this a user-defined function (will always return the opposite of
whatever isInternal returns).
|
#
|
public
|
getExtensionName(): non-empty-string|null
|
#
|
public
|
isVariadic(): bool
Check if the function has a variadic parameter.
Check if the function has a variadic parameter.
|
#
|
public
|
couldThrow(): bool
Checks if the function/method contains `throw` expressions.
Checks if the function/method contains throw expressions.
|
#
|
public
|
isGenerator(): bool
Check if this function can be used as a generator (i.e. contains the
"yield" keyword).
Check if this function can be used as a generator (i.e. contains the
"yield" keyword).
|
#
|
public
|
getStartLine(): positive-int
Get the line number that this function starts on.
Get the line number that this function starts on.
Throws
|
#
|
public
|
getEndLine(): positive-int
Get the line number that this function ends on.
Get the line number that this function ends on.
Throws
|
#
|
public
|
getStartColumn(): positive-int
|
#
|
public
|
getEndColumn(): positive-int
|
#
|
public
|
returnsReference(): bool
Is this function declared as a reference.
Is this function declared as a reference.
|
#
|
public
|
getReturnType(): ReflectionNamedType|ReflectionUnionType|ReflectionIntersectionType|null
Get the return type declaration
Get the return type declaration
|
#
|
public
|
hasReturnType(): bool
Do we have a return type declaration
Do we have a return type declaration
|
#
|
public
|
hasTentativeReturnType(): bool
|
#
|
public
|
getTentativeReturnType(): ReflectionNamedType|ReflectionUnionType|ReflectionIntersectionType|null
|
#
|
public
|
getAttributes(): list<ReflectionAttribute>
|
#
|
public
|
getAttributesByName(string $name): list<ReflectionAttribute>
|
#
|
public
|
getAttributesByInstance(class-string $className): list<ReflectionAttribute>
|
#
|