« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 13 for getTypes (0.001 sec.)
ReflectionIntersectionType::getTypes — 交差型に含まれている型を返す | PHP 8.3 11964
ReflectionIntersectionType::getTypes (PHP 8 >= 8.1.0) ReflectionIntersectionType::getTypes — 交差型に含まれている型を返す 説明 public function ReflectionIntersectionType::getTypes (): array 交差型に含まれている型を返します。 パラメータ この ... 関数にはパラメータはありません。 戻り値 ReflectionType オブジェクトの配列を返します。 例 例1 ReflectionIntersectionType::getTypes() の例 <?php function someFunction ( Iterator & Countable $value ) {} $reflectionFunc = new ReflectionFunction ( 'someFunc ... tion' ); $reflectionParam = $reflectionFunc -> getParameters ()[ 0 ]; var_dump ( $reflectionParam -> getType ()-> getTypes ()); ?> 上の例の出力は、 たとえば以下のようになります。 array(2) { [0] => class ReflectionNamedType#4(0) { } [1] => class ...
https://man.mtool.work/php/8.3/reflectionintersectiontype.gettypes.html
ReflectionUnionType::getTypes — union 型に含まれる型を返す。 | PHP 8.3 11806
ReflectionUnionType::getTypes (PHP 8) ReflectionUnionType::getTypes — union 型に含まれる型を返す。 説明 public function ReflectionUnionType::getTypes (): array union 型に含まれるリフレクションの型を返します。 パラメータ この関数にはパラメー ... タはありません。 戻り値 ReflectionType オブジェクトの配列を返します。 例 例1 ReflectionUnionType::getTypes() の例 <?php function someFunction ( int | float $number ) {} $reflectionFunc = new ReflectionFunction ( 'someFunction' ); ... $reflectionParam = $reflectionFunc -> getParameters ()[ 0 ]; var_dump ( $reflectionParam -> getType ()-> getTypes ()); 上の例の出力は、 たとえば以下のようになります。 array(2) { [0] => class ReflectionNamedType#4(0) { } [1] => class Ref ...
https://man.mtool.work/php/8.3/reflectionuniontype.gettypes.html
SoapClient::__getTypes — SOAP 型の一覧を返す | PHP 8.3 11331
SoapClient::__getTypes (PHP 5, PHP 7, PHP 8) SoapClient::__getTypes — SOAP 型の一覧を返す 説明 public function SoapClient::__getTypes (): ? array ウェブサービスの WSDL で定義されている型の配列を返します。 注意 : この関数は WSDL モードでのみ ... この関数にはパラメータはありません。 戻り値 SOAP 型の配列を返します。すべての構造や型が含まれています。 例 例1 SoapClient::__getTypes() の例 <?php $client = new SoapClient ( 'http://soap.amazon.com/schemas3/AmazonWebServices.wsdl' ); var_dump ( $client -> ... __getTypes ()); ?> 上の例の出力は以下となります。 array(88) { [0]=> string(30) "ProductLine ProductLineArray[]" [1]=> string(85) "str ...
https://man.mtool.work/php/8.3/soapclient.gettypes.html
ReflectionIntersectionType クラス | PHP 8.3 9536
ReflectionIntersectionType クラス (PHP 8 >= 8.1.0) はじめに クラス概要 class ReflectionIntersectionType extends ReflectionType { /* メソッド */ public function getTypes (): array /* 継承したメソッド */ public function ReflectionType::allows ... Null (): bool public function ReflectionType::__toString (): string } 目次 ReflectionIntersectionType::getTypes — 交差型に含まれている型を返す ...
https://man.mtool.work/php/8.3/class.reflectionintersectiontype.html
ReflectionUnionType クラス | PHP 8.3 9536
ReflectionUnionType クラス (PHP 8) はじめに クラス概要 class ReflectionUnionType extends ReflectionType { /* メソッド */ public function getTypes (): array /* 継承したメソッド */ public function ReflectionType::allowsNull (): bool public fu ... nction ReflectionType::__toString (): string } 目次 ReflectionUnionType::getTypes — union 型に含まれる型を返す。 ...
https://man.mtool.work/php/8.3/class.reflectionuniontype.html
SoapClient クラス | PHP 8.3 7900
SoapClient クラス (PHP 5, PHP 7, PHP 8) はじめに SoapClient クラスは » SOAP 1.1 、 » SOAP 1.2 サーバー用のクライアントとなります。 WSDL モードあるいは non-WSDL モードで動作します。 クラス概要 class SoapClient { /* プロパティ */ private ? st ... ing public function __getLastResponse (): ? string public function __getLastResponseHeaders (): ? string public function __getTypes (): ? array public function __setCookie ( string $name , ? string $value = null ): void public function __setLocation ( ? ... nse — 直近の SOAP レスポンスを返す SoapClient::__getLastResponseHeaders — 直近の SOAP レスポンスヘッダを返す SoapClient::__getTypes — SOAP 型の一覧を返す SoapClient::__setCookie — SOAP リクエストと共に送信されるクッキーを設定する SoapClient::__setLocatio ...
https://man.mtool.work/php/8.3/class.soapclient.html
ReflectionType::__toString — 文字列に変換する | PHP 8.3 7742
ReflectionType::__toString (PHP 7, PHP 8) ReflectionType::__toString — 文字列に変換する 説明 public function ReflectionType::__toString (): string 引数の型の名前を取得します。 パラメータ この関数にはパラメータはありません。 戻り値 引数の型を ... iltin() - 組み込みの型であるかを調べる ReflectionType::allowsNull() - null が許されるかをチェックする ReflectionUnionType::getTypes() - union 型に含まれる型を返す。 ReflectionParameter::getType() - 引数の型を取得する ...
https://man.mtool.work/php/8.3/reflectiontype.tostring.html
ReflectionParameter::isArray — 配列を受け取るパラメータであるかどうかを調べる |... 7583
ReflectionParameter::isArray (PHP 5 >= 5.1.2, PHP 7, PHP 8) ReflectionParameter::isArray — 配列を受け取るパラメータであるかどうかを調べる 警告 この関数は PHP 8.0.0 で 非推奨 になります。この関数に頼らないことを強く推奨します。 配列を受け取る ... pe (); if (! $reflectionType ) return false ; $types = $reflectionType instanceof ReflectionUnionType ? $reflectionType -> getTypes () : [ $reflectionType ]; return in_array ( 'array' , array_map (fn( ReflectionNamedType $t ) => $t -> getName (), $types ...
https://man.mtool.work/php/8.3/reflectionparameter.isarray.html
ReflectionParameter::isCallable — パラメータが callable かどうかを返す | PHP 8.... 7583
ReflectionParameter::isCallable (PHP 5 >= 5.4.0, PHP 7, PHP 8) ReflectionParameter::isCallable — パラメータが callable かどうかを返す 警告 この関数は PHP 8.0.0 で 非推奨 になります。この関数に頼らないことを強く推奨します。 パラメータが call ... pe (); if (! $reflectionType ) return false ; $types = $reflectionType instanceof ReflectionUnionType ? $reflectionType -> getTypes () : [ $reflectionType ]; return in_array ( 'callable' , array_map (fn( ReflectionNamedType $t ) => $t -> getName (), $typ ...
https://man.mtool.work/php/8.3/reflectionparameter.iscallable.html
ReflectionParameter::getType — 引数の型を取得する | PHP 8.3 7495
ReflectionParameter::getType (PHP 7, PHP 8) ReflectionParameter::getType — 引数の型を取得する 説明 public function ReflectionParameter::getType (): ? ReflectionType 引数の型を取得します。 パラメータ この関数にはパラメータはありません。 戻り ... getType (); if (! $reflectionType ) return []; return $reflectionType instanceof ReflectionUnionType ? $reflectionType -> getTypes () : [ $reflectionType ]; } ?> 参考 ReflectionParameter::hasType() - 引数が型を持つかを調べる ReflectionType::__toString() ...
https://man.mtool.work/php/8.3/reflectionparameter.gettype.html
PREV 1 2 NEXT