ReflectionFunctionAbstract
abstract class ReflectionFunctionAbstract implements Reflector (View source)
A parent class to ReflectionFunction, read its description for details.
Properties
| string | $name |
Methods
Checks if function in namespace
Checks if closure
Checks if deprecated
Checks if is internal
Checks if user defined
Returns whether this function is a generator
Returns whether this function is variadic
Returns this pointer bound to closure
Returns the scope associated to the closure
No description
Gets doc comment
Gets end line number
Gets extension info
Gets extension name
Gets file name
Gets function name
Gets namespace name
Gets number of parameters
Gets number of required parameters
Gets parameters
Gets the specified return type of a function
Gets function short name
Gets starting line number
Gets static variables
Checks if returns reference
Checks if the function has a specified return type
No description
Returns an array of the used variables in the Closure
Returns whether the function has a tentative return type
Returns the tentative return type associated with the function
Checks if the function is static
Returns the string representation of the ReflectionFunctionAbstract object
Details
bool
inNamespace()
Checks if function in namespace
bool
isClosure()
Checks if closure
bool
isDeprecated()
Checks if deprecated
bool
isInternal()
Checks if is internal
bool
isUserDefined()
Checks if user defined
bool
isGenerator()
Returns whether this function is a generator
bool
isVariadic()
Returns whether this function is variadic
object|null
getClosureThis()
Returns this pointer bound to closure
ReflectionClass|null
getClosureScopeClass()
Returns the scope associated to the closure
ReflectionClass|null
getClosureCalledClass()
No description
string|false
getDocComment()
Gets doc comment
int|false
getEndLine()
Gets end line number
ReflectionExtension|null
getExtension()
Gets extension info
string|false
getExtensionName()
Gets extension name
string|false
getFileName()
Gets file name
string
getName()
Gets function name
string
getNamespaceName()
Gets namespace name
int
getNumberOfParameters()
Gets number of parameters
int
getNumberOfRequiredParameters()
Gets number of required parameters
array
getParameters()
Gets parameters
ReflectionType|null
getReturnType()
Gets the specified return type of a function
string
getShortName()
Gets function short name
int|false
getStartLine()
Gets starting line number
array
getStaticVariables()
Gets static variables
bool
returnsReference()
Checks if returns reference
bool
hasReturnType()
Checks if the function has a specified return type
array
getAttributes(string|null $name = null, int $flags = 0)
No description
array
getClosureUsedVariables()
Returns an array of the used variables in the Closure
bool
hasTentativeReturnType()
Returns whether the function has a tentative return type
ReflectionType|null
getTentativeReturnType()
Returns the tentative return type associated with the function
bool
isStatic()
Checks if the function is static
string
__toString()
Returns the string representation of the ReflectionFunctionAbstract object
Get a human-readable description of the function, its parameters and return values.