php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
ReflectionFunction Class Reference
Inheritance diagram for ReflectionFunction:
ReflectionFunctionAbstract Reflector Stringable

Public Member Functions

 __construct (Closure|string $function)
 
 __toString ()
 
 isAnonymous ()
 
 isDisabled ()
 
 invoke (mixed ... $args)
 
 invokeArgs (array $args)
 
 getClosure ()
 
- Public Member Functions inherited from ReflectionFunctionAbstract
 inNamespace ()
 
 isClosure ()
 
 isDeprecated ()
 
 isInternal ()
 
 isUserDefined ()
 
 isGenerator ()
 
 isVariadic ()
 
 isStatic ()
 
 getClosureThis ()
 
 getClosureScopeClass ()
 
 getClosureCalledClass ()
 
 getClosureUsedVariables ()
 
 getDocComment ()
 
 getEndLine ()
 
 getExtension ()
 
 getExtensionName ()
 
 getFileName ()
 
 getName ()
 
 getNamespaceName ()
 
 getNumberOfParameters ()
 
 getNumberOfRequiredParameters ()
 
 getParameters ()
 
 getShortName ()
 
 getStartLine ()
 
 getStaticVariables ()
 
 returnsReference ()
 
 hasReturnType ()
 
 getReturnType ()
 
 hasTentativeReturnType ()
 
 getTentativeReturnType ()
 
 getAttributes (?string $name=null, int $flags=0)
 

Data Fields

const int IS_DEPRECATED = UNKNOWN
 
- Data Fields inherited from ReflectionFunctionAbstract
string $name
 

Detailed Description

Definition at line 117 of file php_reflection.stub.php.

Constructor & Destructor Documentation

◆ __construct()

ReflectionFunction::__construct ( Closure|string $function)

Definition at line 122 of file php_reflection.stub.php.

Member Function Documentation

◆ __toString()

ReflectionFunction::__toString ( )

Implements Stringable.

Definition at line 124 of file php_reflection.stub.php.

◆ getClosure()

ReflectionFunction::getClosure ( )

@tentative-return-type

Definition at line 141 of file php_reflection.stub.php.

◆ invoke()

ReflectionFunction::invoke ( mixed ... $args)

@tentative-return-type

Definition at line 135 of file php_reflection.stub.php.

◆ invokeArgs()

ReflectionFunction::invokeArgs ( array $args)

@tentative-return-type

Definition at line 138 of file php_reflection.stub.php.

◆ isAnonymous()

ReflectionFunction::isAnonymous ( )

Definition at line 126 of file php_reflection.stub.php.

◆ isDisabled()

ReflectionFunction::isDisabled ( )

@tentative-return-type

Definition at line 132 of file php_reflection.stub.php.

Field Documentation

◆ IS_DEPRECATED

const int ReflectionFunction::IS_DEPRECATED = UNKNOWN

@cvalue ZEND_ACC_DEPRECATED

Definition at line 120 of file php_reflection.stub.php.


The documentation for this class was generated from the following file: