« ReflectionProperty::__toString
ReflectionType::allowsNull »

ReflectionType クラス

(PHP 7, PHP 8)

はじめに

ReflectionType クラスは、 関数の引数や戻り値の型、 またはクラスのプロパティの型に関する情報を報告します。 リフレクション拡張モジュールでは、以下のサブクラスが宣言されています。

クラス概要

abstract class ReflectionType implements Stringable {
/* メソッド */
public function allowsNull(): bool
public function __toString(): string
}

変更履歴

バージョン 説明
8.0.0 ReflectionType は、抽象クラスになり、 ReflectionType::isBuiltin() は、 ReflectionNamedType::isBuiltin() に移動しました。

目次

関連キーワード:
ReflectionType   toString   allowsNull   リフレクション   ReflectionNamedType   isBuiltin   ReflectionProperty   プロパティ   報告   拡張   サブクラス   宣言   ReflectionUnionType   ReflectionIntersectionType   概要   abstract   implements   Stringable   履歴   抽象   目次   チェック
関連する関数・ページ:
reflectiontype.tostring   reflectiontype.allowsnull   class.reflectionnamedtype   class.reflectionuniontype   class.reflectionintersectiontype   reflectionnamedtype.getname