« ReflectionExtension::__toString
ReflectionFunction::__construct »

ReflectionFunction クラス

(PHP 5, PHP 7, PHP 8)

はじめに

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

クラス概要

class ReflectionFunction extends ReflectionFunctionAbstract {
/* 定数 */
public const int IS_DEPRECATED;
/* 継承したプロパティ */
public string $name;
/* メソッド */
public function __construct(Closure|string $function)
public static function export(string $name, string $return = ?): string
public function getClosure(): Closure
public function invoke(mixed ...$args): mixed
public function invokeArgs(array $args): mixed
public function isAnonymous(): bool
#[\Deprecated(
    since: '8.0',
    message: "as ReflectionFunction can no longer be constructed for disabled functions",
)]

public function isDisabled(): bool
public function __toString(): string
/* 継承したメソッド */
public function ReflectionFunctionAbstract::getAttributes(?string $name = null, int $flags = 0): array
abstract public function ReflectionFunctionAbstract::__toString(): void
}

定義済み定数

ReflectionFunction の修飾子

ReflectionFunction::IS_DEPRECATED int

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

変更履歴

バージョン 説明
8.4.0 クラス定数が型付けされました。
8.0.0 ReflectionFunction::export() は、削除されました。

目次

関連キーワード:
ReflectionFunctionAbstract   ReflectionFunction   toString   construct   定数   export   mixed   ReflectionExtension   継承   Closure   getClosure   invoke   args   invokeArgs   isAnonymous   isDisabled   ReflectionClass   ReflectionType   起動   リフレクション   報告   概要   extends   プロパティ   static
関連する関数・ページ:
reflectionfunctionabstract.tostring   reflectionfunction.tostring   reflectionfunction.isdisabled   reflectionfunction.invoke   reflectionfunction.export   reflectionfunctionabstract.getname