« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 1 of about 1 for untyped (0.001 sec.)
ReflectionProperty::getSettableType — set フックのパラメータの型を返す | PHP 8.... 9414
ReflectionProperty::getSettableType (PHP 8 >= 8.4.0) ReflectionProperty::getSettableType — set フックのパラメータの型を返す 説明 public function ReflectionProperty::getSettableType (): ? ReflectionType set フックに指定されたパラメータの型を ... set ( string | Stringable $value ) => (string) $value ; } public string $virtual { get => 'Do not change this' ; } public $untyped = 'silly' ; } $rClass = new \ReflectionClass ( Example ::class); var_dump ( $rClass -> getProperty ( 'basic' )-> getSettab ... tableType ()); var_dump ( $rClass -> getProperty ( 'virtual' )-> getSettableType ()); var_dump ( $rClass -> getProperty ( 'untyped' )-> getSettableType ()); ?> 上の例の出力は以下となります。 object(ReflectionNamedType)#3 (0) { } object(ReflectionUnionTy ...
https://man.mtool.work/php/8.3/reflectionproperty.getsettabletype.html
PREV 1 NEXT