ReflectionMethod::export
(PHP 5, PHP 7)
ReflectionMethod::export — メソッドをエクスポートする
説明
public static ReflectionMethod::export
( string
$class
, string $name
[, bool $return = FALSE
] ) : stringReflectionMethod をエクスポートします。
警告
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
パラメータ
-
class -
クラス名。
-
name -
メソッド名。
-
return -
TRUEに設定すると、エクスポートを発行するのではなく返します。FALSE(デフォルト) の場合はその逆です。
返り値
return パラメータを
TRUE に設定すると、エクスポートを文字列で返します。それ以外の場合は
NULL を返します。
参考
- ReflectionMethod::__construct() - ReflectionMethod を作成する
- ReflectionMethod::__toString() - ReflectionMethod オブジェクトの文字列表現を返す