« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 3 of about 3 for getSettableType (0.001 sec.)
ReflectionProperty::getSettableType — set フックのパラメータの型を返す | PHP 8.... 11905
ReflectionProperty::getSettableType (PHP 8 >= 8.4.0) ReflectionProperty::getSettableType — set フックのパラメータの型を返す 説明 public function ReflectionProperty::getSettableType (): ? ReflectionType set フックに指定されたパラメータの型を ... 仮想プロパティで、かつ set フックが存在しない場合、 never に対応する ReflectionType を返します。 例 例1 ReflectionProperty::getSettableType() の例 <?php class Example { public string $basic { set => strtolower ( $value ); } public string $wider { set ( string | ... $untyped = 'silly' ; } $rClass = new \ReflectionClass ( Example ::class); var_dump ( $rClass -> getProperty ( 'basic' )-> getSettableType ()); var_dump ( $rClass -> getProperty ( 'wider' )-> getSettableType ()); var_dump ( $rClass -> getProperty ( 'virtual' )- ... > getSettableType ()); var_dump ( $rClass -> getProperty ( 'untyped' )-> getSettableType ()); ?> 上の例の出力は以下となります。 object(Refle ...
https://man.mtool.work/php/8.3/reflectionproperty.getsettabletype.html
ReflectionProperty クラス | PHP 8.3 8185
ReflectionProperty クラス (PHP 5, PHP 7, PHP 8) はじめに ReflectionProperty クラスは クラスのプロパティについての情報を報告します。 クラス概要 class ReflectionProperty implements Reflector { /* 定数 */ public const int IS_STATIC ; public co ... Modifiers (): int public function getName (): string public function getRawValue ( object $object ): mixed public function getSettableType (): ? ReflectionType public function getType (): ? ReflectionType public function getValue ( ? object $object = null ): mi ... flectionProperty::getRawValue — get フックが定義されていたとしても、それを迂回してプロパティの値を返す ReflectionProperty::getSettableType — set フックのパラメータの型を返す ReflectionProperty::getType — プロパティの型を取得する ReflectionProperty::getValue — 値 ...
https://man.mtool.work/php/8.3/class.reflectionproperty.html
リフレクション | PHP 8.3 7794
リフレクション はじめに PHP には完全なリフレクション API が付属しており、 クラス、インターフェイス、関数、メソッド、そして拡張モジュールについて 型やプロパティを実行時に調べることができます。 さらに、このリフレクション API は関数、クラス、メ ... flectionProperty::getRawValue — get フックが定義されていたとしても、それを迂回してプロパティの値を返す ReflectionProperty::getSettableType — set フックのパラメータの型を返す ReflectionProperty::getType — プロパティの型を取得する ReflectionProperty::getValue — 値 ...
https://man.mtool.work/php/8.3/book.reflection.html
PREV 1 NEXT