ReflectionFunction クラス

(PHP 5, PHP 7)

はじめに

ReflectionFunction クラスは 関数についての情報を報告します。

クラス概要

ReflectionFunction extends ReflectionFunctionAbstract implements Reflector {
/* 定数 */
const int IS_DEPRECATED = 262144 ;
/* プロパティ */
public $name ;
/* メソッド */
public __construct ( Closure|string $function )
public static export ( string $name , string $return = ? ) : string
public getClosure ( ) : Closure
public invoke ( mixed ...$args ) : mixed
public invokeArgs ( array $args ) : mixed
public isDisabled ( ) : bool
public __toString ( ) : string
/* 継承したメソッド */
final private ReflectionFunctionAbstract::__clone ( ) : void
public ReflectionFunctionAbstract::getFileName ( ) : string|false
abstract public ReflectionFunctionAbstract::__toString ( ) : void
}

プロパティ

name

関数名。読み込み専用で、書き込もうとすると ReflectionException をスローします。

定義済み定数

ReflectionFunction の修飾子

ReflectionFunction::IS_DEPRECATED

非推奨の関数であることを示します。

目次