The ReflectionMethod class
Introduction
The ReflectionMethod class reports information about a method.
Class synopsis
/* Constants */
/* Properties */
public
$ReflectionMethod->name
;
public
$class
;
/* Methods */
public static string ReflectionMethod::export
( string $class
, string $name
[, bool $return = false
] )
/* Inherited methods */
}Properties
- name
-
Method name
- class
-
Class name
Predefined Constants
ReflectionMethod Node Types
- ReflectionMethod::IS_STATIC
-
Indicates that the method is static.
- ReflectionMethod::IS_PUBLIC
-
Indicates that the method is public.
- ReflectionMethod::IS_PROTECTED
-
Indicates that the method is protected.
- ReflectionMethod::IS_PRIVATE
-
Indicates that the method is private.
- ReflectionMethod::IS_ABSTRACT
-
Indicates that the method is abstract.
- ReflectionMethod::IS_FINAL
-
Indicates that the method is final.
Table of Contents
- ReflectionMethod::__construct - Constructs a ReflectionMethod
- ReflectionMethod::export - Export a reflection method.
- ReflectionMethod::getClosure - Returns a dynamically created closure for the method
- ReflectionMethod::getDeclaringClass - Gets declaring class for the reflected method.
- ReflectionMethod::getModifiers - Gets the method modifiers
- ReflectionMethod::getPrototype - Gets the method prototype (if there is one).
- ReflectionMethod::invoke - Invoke
- ReflectionMethod::invokeArgs - Invoke args
- ReflectionMethod::isAbstract - Checks if method is abstract
- ReflectionMethod::isConstructor - Checks if method is a constructor
- ReflectionMethod::isDestructor - Checks if method is a destructor
- ReflectionMethod::isFinal - Checks if method is final
- ReflectionMethod::isPrivate - Checks if method is private
- ReflectionMethod::isProtected - Checks if method is protected
- ReflectionMethod::isPublic - Checks if method is public
- ReflectionMethod::isStatic - Checks if method is static
- ReflectionMethod::setAccessible - Set method accessibility
- ReflectionMethod::__toString - Returns the string representation of the Reflection method object.




