The ReflectionMethod class

(PHP 5, PHP 7)

Introducere

The ReflectionMethod class reports information about a method.

Sinopsisul clasei

ReflectionMethod extends ReflectionFunctionAbstract implements Reflector {
/* Constante */
const int IS_STATIC = 1 ;
const int IS_PUBLIC = 256 ;
const int IS_PROTECTED = 512 ;
const int IS_PRIVATE = 1024 ;
const int IS_ABSTRACT = 2 ;
const int IS_FINAL = 4 ;
/* Proprietăți */
public $name ;
public $class ;
/* Metode */
public __construct ( string|object $class , string $name )
public static export ( string $class , string $name , bool $return = false ) : string
public getClosure ( object $object ) : Closure
public getModifiers ( ) : int
public invoke ( object $object , mixed ...$args ) : mixed
public invokeArgs ( object $object , array $args ) : mixed
public isAbstract ( ) : bool
public isConstructor ( ) : bool
public isDestructor ( ) : bool
public isFinal ( ) : bool
public isPrivate ( ) : bool
public isProtected ( ) : bool
public isPublic ( ) : bool
public isStatic ( ) : bool
public setAccessible ( bool $accessible ) : void
public __toString ( ) : string
/* Metode moștenite */
final private ReflectionFunctionAbstract::__clone ( ) : void
abstract public ReflectionFunctionAbstract::__toString ( ) : void
}

Proprietăți

name

Method name

class

Class name

Constante predefinite

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.

Cuprins