ReflectionClass::getStaticProperties

(PHP 5, PHP 7, PHP 8)

ReflectionClass::getStaticPropertiesstaticプロパティを取得する

説明

public ReflectionClass::getStaticProperties(): array

staticプロパティを取得します。

パラメータ

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

戻り値

staticプロパティを配列で返します。

変更履歴

バージョン 説明
8.3.0 ReflectionClass::getStaticProperties() の戻り値の型が、?array から array に変更されました。

参考