ReflectionMethod ��

(PHP 5, PHP 7)

���

ReflectionMethod �౨����һ���������й���Ϣ��

��ժҪ

ReflectionMethod extends ReflectionFunctionAbstract implements Reflector {
/* ���� */
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 ;
/* ���� */
public $name ;
public $class ;
/* ���� */
public __construct ( mixed $class , string $name )
public static export ( string $class , string $name [, bool $return = false ] ) : string
public getClosure ( object $object ) : Closure
public getModifiers ( void ) : int
public getPrototype ( void ) : ReflectionMethod
public invoke ( object $object [, mixed $parameter [, mixed $... ]] ) : mixed
public invokeArgs ( object $object , array $args ) : mixed
public isAbstract ( void ) : bool
public isConstructor ( void ) : bool
public isDestructor ( void ) : bool
public isFinal ( void ) : bool
public isPrivate ( void ) : bool
public isProtected ( void ) : bool
public isPublic ( void ) : bool
public isStatic ( void ) : bool
public setAccessible ( bool $accessible ) : void
public __toString ( void ) : string
/* �̳еķ��� */
final private ReflectionFunctionAbstract::__clone ( void ) : void
public ReflectionFunctionAbstract::getFileName ( void ) : string
public ReflectionFunctionAbstract::getName ( void ) : string
abstract public ReflectionFunctionAbstract::__toString ( void ) : void
}

����

name

Method name

class

Class name

Ԥ���峣��

ReflectionMethod ���η�

ReflectionMethod::IS_STATIC

ָʾһ�������Ǿ�̬��static���ġ�

ReflectionMethod::IS_PUBLIC

ָʾһ�������� public �ġ�

ReflectionMethod::IS_PROTECTED

ָʾһ�������� protected �ġ�

ReflectionMethod::IS_PRIVATE

ָʾһ�������� private �ġ�

ReflectionMethod::IS_ABSTRACT

ָʾһ�������� abstract �ġ�

ReflectionMethod::IS_FINAL

ָʾһ�������� final �ġ�

Table of Contents