Forum PHP 2025

ReflectionParameter::isPromoted

(PHP 8)

ReflectionParameter::isPromotedパラメータがプロパティに昇格しているかを調べる

説明

public ReflectionParameter::isPromoted(): bool

パラメータが コンストラクタのプロモーション によってプロパティに昇格しているかを調べます。

パラメータ

この関数にはパラメータはありません。

戻り値

パラメータがプロパティに昇格している場合は true を返します。 そうでない場合は false を返します。

参考

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top