ReflectionFunctionAbstract::__toString
ReflectionMethod::__construct
Reflection
PHP Manual

# The ReflectionMethod class

(PHP 5)

## Einführung

The ReflectionMethod class reports information about a method.

## Klassenbeschreibung

ReflectionMethod extends ReflectionFunctionAbstract implements Reflector {
/* Konstanten */
const integer IS_STATIC = 1 ;
const integer IS_PUBLIC = 256 ;
const integer IS_PROTECTED = 512 ;
const integer IS_PRIVATE = 1024 ;
const integer IS_ABSTRACT = 2 ;
const integer IS_FINAL = 4 ;
/* Eigenschaften */
public $name ;
public $class ;
/* Methoden */
public __construct ( mixed `$class` , string `$name` )
public static string export ( string `$class` , string `$name` [, bool `$return` = false ] )
public Closure getClosure ( string `$object` )
public ReflectionClass getDeclaringClass ( void )
public int getModifiers ( void )
public ReflectionMethod getPrototype ( void )
public mixed invoke ( object `$object` [, mixed `$parameter` [, mixed `$...` ]] )
public mixed invokeArgs ( object `$object` , array `$args` )
public bool isAbstract ( void )
public bool isConstructor ( void )
public bool isDestructor ( void )
public bool isFinal ( void )
public bool isPrivate ( void )
public bool isProtected ( void )
public bool isPublic ( void )
public bool isStatic ( void )
public void setAccessible ( bool `$accessible` )
public string __toString ( void )
/* Geerbte Methoden */
final private void ReflectionFunctionAbstract::__clone ( void )
public ReflectionClass ReflectionFunctionAbstract::getClosureScopeClass ( void )
public object ReflectionFunctionAbstract::getClosureThis ( void )
public string ReflectionFunctionAbstract::getDocComment ( void )
public int ReflectionFunctionAbstract::getEndLine ( void )
public ReflectionExtension ReflectionFunctionAbstract::getExtension ( void )
public string ReflectionFunctionAbstract::getExtensionName ( void )
public string ReflectionFunctionAbstract::getFileName ( void )
public string ReflectionFunctionAbstract::getName ( void )
public string ReflectionFunctionAbstract::getNamespaceName ( void )
public int ReflectionFunctionAbstract::getNumberOfParameters ( void )
public int ReflectionFunctionAbstract::getNumberOfRequiredParameters ( void )
public array ReflectionFunctionAbstract::getParameters ( void )
public string ReflectionFunctionAbstract::getShortName ( void )
public int ReflectionFunctionAbstract::getStartLine ( void )
public array ReflectionFunctionAbstract::getStaticVariables ( void )
public bool ReflectionFunctionAbstract::inNamespace ( void )
public bool ReflectionFunctionAbstract::isClosure ( void )
public bool ReflectionFunctionAbstract::isDeprecated ( void )
public bool ReflectionFunctionAbstract::isGenerator ( void )
public bool ReflectionFunctionAbstract::isInternal ( void )
public bool ReflectionFunctionAbstract::isUserDefined ( void )
public bool ReflectionFunctionAbstract::returnsReference ( void )
abstract public void ReflectionFunctionAbstract::__toString ( void )
}

## Eigenschaften

name

  Method name

class

  Class name

## Vordefinierte Konstanten

## ReflectionMethod Modifiers

`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.

## Inhaltsverzeichnis

- 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.

ReflectionFunctionAbstract::__toString
ReflectionMethod::__construct
Reflection
PHP Manual