« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 3 of about 3 for reflectionParam (0.002 sec.)
ReflectionIntersectionType::getTypes — 交差型に含まれている型を返す | PHP 8.3 11570
ReflectionIntersectionType::getTypes (PHP 8 >= 8.1.0) ReflectionIntersectionType::getTypes — 交差型に含まれている型を返す 説明 public function ReflectionIntersectionType::getTypes (): array 交差型に含まれている型を返します。 パラメータ この ... php function someFunction ( Iterator & Countable $value ) {} $reflectionFunc = new ReflectionFunction ( 'someFunction' ); $reflectionParam = $reflectionFunc -> getParameters ()[ 0 ]; var_dump ( $reflectionParam -> getType ()-> getTypes ()); ?> 上の例の出力は、 ... e#4(0) { } [1] => class ReflectionNamedType#5(0) { } } 参考 ReflectionType::allowsNull() - null が許されるかをチェックする ReflectionParameter::getType() - 引数の型を取得する ...
https://man.mtool.work/php/8.3/reflectionintersectiontype.gettypes.html
ReflectionUnionType::getTypes — union 型に含まれる型を返す。 | PHP 8.3 9301
ReflectionUnionType::getTypes (PHP 8) ReflectionUnionType::getTypes — union 型に含まれる型を返す。 説明 public function ReflectionUnionType::getTypes (): array union 型に含まれるリフレクションの型を返します。 パラメータ この関数にはパラメー ... の例 <?php function someFunction ( int | float $number ) {} $reflectionFunc = new ReflectionFunction ( 'someFunction' ); $reflectionParam = $reflectionFunc -> getParameters ()[ 0 ]; var_dump ( $reflectionParam -> getType ()-> getTypes ()); 上の例の出力は、 たと ... e#4(0) { } [1] => class ReflectionNamedType#5(0) { } } 参考 ReflectionType::allowsNull() - null が許されるかをチェックする ReflectionParameter::getType() - 引数の型を取得する 他のマニュアルの関連ページ DuckDB Union Functions Linux JM nfsservctl(2) ...
https://man.mtool.work/php/8.3/reflectionuniontype.gettypes.html
ReflectionType::__toString — 文字列に変換する | PHP 8.3 7013
ReflectionType::__toString (PHP 7, PHP 8) ReflectionType::__toString — 文字列に変換する 説明 public function ReflectionType::__toString (): string 引数の型の名前を取得します。 パラメータ この関数にはパラメータはありません。 戻り値 引数の型を ... ring() の例 <?php function someFunction ( string $param ) {} $reflectionFunc = new ReflectionFunction ( 'someFunction' ); $reflectionParam = $reflectionFunc -> getParameters ()[ 0 ]; echo $reflectionParam -> getType (); 上の例の出力は、 たとえば以下のようになり ... lectionType::allowsNull() - null が許されるかをチェックする ReflectionUnionType::getTypes() - union 型に含まれる型を返す。 ReflectionParameter::getType() - 引数の型を取得する ...
https://man.mtool.work/php/8.3/reflectiontype.tostring.html
PREV 1 NEXT