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
No description
No description
No description
No description
Returns the string representation of any Reflection 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()
No description
bool
hasTentativeReturnType()
No description
ReflectionType|null
getTentativeReturnType()
No description
bool
isStatic()
No description
string
__toString()
Returns the string representation of any Reflection object.
Please note that since PHP 8.0 this method is absent in this interface and inherits from the {\Stringable} parent.