ReflectionMethod クラス

(PHP 5, PHP 7)

はじめに

ReflectionMethod クラスは メソッドについての情報を報告します。

クラス概要

ReflectionMethod extends ReflectionFunctionAbstract implements Reflector {
/* 定数 */
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 ;
/* プロパティ */
public $name ;
public $class ;
/* メソッド */
public __construct ( object|string $objectOrMethod , string $method )
public __construct ( string $classMethod )
public static export ( string $class , string $name , bool $return = false ) : string
public getClosure ( object|null $object = null ) : Closure
public getModifiers ( ) : int
public invoke ( object|null $object , mixed ...$args ) : mixed
public invokeArgs ( object|null $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
/* 継承したメソッド */
final private ReflectionFunctionAbstract::__clone ( ) : void
public ReflectionFunctionAbstract::getFileName ( ) : string|false
abstract public ReflectionFunctionAbstract::__toString ( ) : void
}

プロパティ

name

メソッド名

class

クラス名

定義済み定数

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 であることを示します。

目次