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

Public Member Functions

 __construct (object|string $objectOrMethod, ?string $method=null)
 
 __toString ()
 
 isPublic ()
 
 isPrivate ()
 
 isProtected ()
 
 isAbstract ()
 
 isFinal ()
 
 isConstructor ()
 
 isDestructor ()
 
 getClosure (?object $object=null)
 
 getModifiers ()
 
 invoke (?object $object, mixed ... $args)
 
 invokeArgs (?object $object, array $args)
 
 getDeclaringClass ()
 
 getPrototype ()
 
 hasPrototype ()
 
 setAccessible (bool $accessible)
 
- 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)
 

Static Public Member Functions

static createFromMethodName (string $method)
 

Data Fields

const int IS_STATIC = UNKNOWN
 
const int IS_PUBLIC = UNKNOWN
 
const int IS_PROTECTED = UNKNOWN
 
const int IS_PRIVATE = UNKNOWN
 
const int IS_ABSTRACT = UNKNOWN
 
const int IS_FINAL = UNKNOWN
 
string $class
 
- Data Fields inherited from ReflectionFunctionAbstract
string $name
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ReflectionMethod::__construct ( object|string $objectOrMethod,
?string $method = null )

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

Member Function Documentation

◆ __toString()

ReflectionMethod::__toString ( )

Implements Stringable.

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

◆ createFromMethodName()

static ReflectionMethod::createFromMethodName ( string $method)
static

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

◆ getClosure()

ReflectionMethod::getClosure ( ?object $object = null)

@tentative-return-type

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

◆ getDeclaringClass()

ReflectionMethod::getDeclaringClass ( )

@tentative-return-type

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

◆ getModifiers()

ReflectionMethod::getModifiers ( )

@tentative-return-type

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

◆ getPrototype()

ReflectionMethod::getPrototype ( )

@tentative-return-type

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

◆ hasPrototype()

ReflectionMethod::hasPrototype ( )

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

◆ invoke()

ReflectionMethod::invoke ( ?object $object,
mixed ... $args )

@tentative-return-type

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

◆ invokeArgs()

ReflectionMethod::invokeArgs ( ?object $object,
array $args )

@tentative-return-type

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

◆ isAbstract()

ReflectionMethod::isAbstract ( )

@tentative-return-type

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

◆ isConstructor()

ReflectionMethod::isConstructor ( )

@tentative-return-type

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

◆ isDestructor()

ReflectionMethod::isDestructor ( )

@tentative-return-type

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

◆ isFinal()

ReflectionMethod::isFinal ( )

@tentative-return-type

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

◆ isPrivate()

ReflectionMethod::isPrivate ( )

@tentative-return-type

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

◆ isProtected()

ReflectionMethod::isProtected ( )

@tentative-return-type

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

◆ isPublic()

ReflectionMethod::isPublic ( )

@tentative-return-type

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

◆ setAccessible()

ReflectionMethod::setAccessible ( bool $accessible)

@tentative-return-type

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

Field Documentation

◆ $class

string ReflectionMethod::$class

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

◆ IS_ABSTRACT

const int ReflectionMethod::IS_ABSTRACT = UNKNOWN

@cvalue ZEND_ACC_ABSTRACT

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

◆ IS_FINAL

const int ReflectionMethod::IS_FINAL = UNKNOWN

@cvalue ZEND_ACC_FINAL

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

◆ IS_PRIVATE

const int ReflectionMethod::IS_PRIVATE = UNKNOWN

@cvalue ZEND_ACC_PRIVATE

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

◆ IS_PROTECTED

const int ReflectionMethod::IS_PROTECTED = UNKNOWN

@cvalue ZEND_ACC_PROTECTED

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

◆ IS_PUBLIC

const int ReflectionMethod::IS_PUBLIC = UNKNOWN

@cvalue ZEND_ACC_PUBLIC

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

◆ IS_STATIC

const int ReflectionMethod::IS_STATIC = UNKNOWN

@cvalue ZEND_ACC_STATIC

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


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