« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 36 for ReflectionGenerator (0.002 sec.)
ReflectionGenerator オブジェクトを構築する 9937
« ReflectionGenerator ReflectionGenerator::getExecutingFile » PHP Manual ReflectionGenerator ReflectionGenerator オブジェクトを構築する 検索 ReflectionGenerator::__construct (PHP 7, PHP 8) ReflectionGenerator::__construct — ReflectionGenerator ... tor オブジェクトを構築する 説明 public function ReflectionGenerator::__construct ( Generator $generator ) ReflectionGenerator オブジェクトを構築します。 パラメータ generator ジェネレータオブ ... ジェクト 例 例1 ReflectionGenerator::__construct() の例 <?php function gen () { yield 1 ; } $gen = gen (); $reflectionGen = new ReflectionGenerator ( $gen ); ... ExecutingFile ()} output; 上の例の出力は、 たとえば以下のようになります。 gen Line: 5 File: /path/to/file/example.php 参考 ReflectionGenerator::getFunction() - ジェネレータの関数名を取得する ReflectionGenerator::getExecutingLine() - 現在実行中のジェネレータの行を取 ...
https://man.mtool.work/php/8.3/reflectiongenerator.construct.html
ReflectionGenerator オブジェクトを構築する 9905
« ReflectionGenerator ReflectionGenerator::getExecutingFile » PHP Manual ReflectionGenerator ReflectionGenerator オブジェクトを構築する 検索 ReflectionGenerator::__construct (PHP 7, PHP 8) ReflectionGenerator::__construct — ReflectionGenerator ... tor オブジェクトを構築する 説明 public function ReflectionGenerator::__construct ( Generator $generator ) ReflectionGenerator オブジェクトを構築します。 パラメータ generator ジェネレータオブ ... ジェクト 例 例1 ReflectionGenerator::__construct() の例 <?php function gen () { yield 1 ; } $gen = gen (); $reflectionGen = new ReflectionGenerator ( $gen ); ... ExecutingFile ()} output; 上の例の出力は、 たとえば以下のようになります。 gen Line: 5 File: /path/to/file/example.php 参考 ReflectionGenerator::getFunction() - ジェネレータの関数名を取得する ReflectionGenerator::getExecutingLine() - 現在実行中のジェネレータの行を取 ...
https://man.mtool.work/php/8.3/reflectiongenerator.construct.html
ReflectionGenerator クラス 9794
« ReflectionUnionType::getTypes ReflectionGenerator::__construct » PHP Manual リフレクション ReflectionGenerator クラス 検索 ReflectionGenerator クラス (PHP 7, PHP 8) はじめに ReflectionGenerator クラスは、ジェネレータに関する情報を報告しま ... す。 クラス概要 final class ReflectionGenerator { /* メソッド */ public function __construct ( Generator $generator ) public function getExecutingFile (): string public f ... ction isClosed (): bool } 変更履歴 バージョン 説明 8.0.0 このクラスは final として定義され、 継承できなくなりました。 目次 ReflectionGenerator::__construct — ReflectionGenerator オブジェクトを構築する ReflectionGenerator::getExecutingFile — 現在実行中のジェネレータ ... のファイル名を取得する ReflectionGenerator::getExecutingGenerator — 実行中の Generator オブジェクトを取得する ReflectionGenerator::getExecutingLine — 現在実行中のジェ ...
https://man.mtool.work/php/8.3/class.reflectiongenerator.html
ReflectionGenerator クラス 9794
« ReflectionUnionType::getTypes ReflectionGenerator::__construct » PHP Manual リフレクション ReflectionGenerator クラス 検索 ReflectionGenerator クラス (PHP 7, PHP 8) はじめに ReflectionGenerator クラスは、ジェネレータに関する情報を報告しま ... す。 クラス概要 final class ReflectionGenerator { /* メソッド */ public function __construct ( Generator $generator ) public function getExecutingFile (): string public f ... ction isClosed (): bool } 変更履歴 バージョン 説明 8.0.0 このクラスは final として定義され、 継承できなくなりました。 目次 ReflectionGenerator::__construct — ReflectionGenerator オブジェクトを構築する ReflectionGenerator::getExecutingFile — 現在実行中のジェネレータ ... のファイル名を取得する ReflectionGenerator::getExecutingGenerator — 実行中の Generator オブジェクトを取得する ReflectionGenerator::getExecutingLine — 現在実行中のジェ ...
https://man.mtool.work/php/8.3/class.reflectiongenerator.html
現在実行中のジェネレータの行を取得する 9556
« ReflectionGenerator::getExecutingGenerator ReflectionGenerator::getFunction » PHP Manual ReflectionGenerator 現在実行中のジェネレータの行を取得する 検索 ReflectionGenerator::getExecutingLine (PHP 7, PHP 8) ReflectionGenerator::getExecutin ... gLine — 現在実行中のジェネレータの行を取得する 説明 public function ReflectionGenerator::getExecutingLine (): int 現在実行中のジェネレータの行を取得します。 パラメータ この関数にはパラメータはありません。 戻り値 ... 現在実行中のジェネレータの式の行番号を返します。 例 例1 ReflectionGenerator::getExecutingLine() の例 <?php class GenExample { public function gen () { yield 1 ; } } $gen = (new GenExample )-> gen () ... ; $reflectionGen = new ReflectionGenerator ( $gen ); echo "Line: { $reflectionGen -> getExecutingLine ()} " ; 上の例の出力は、 たとえば以下のようになります。 Line: 7 ...
https://man.mtool.work/php/8.3/reflectiongenerator.getexecutingline.html
ジェネレータの関数名を取得する 9556
« ReflectionGenerator::getExecutingLine ReflectionGenerator::getThis » PHP Manual ReflectionGenerator ジェネレータの関数名を取得する 検索 ReflectionGenerator::getFunction (PHP 7, PHP 8) ReflectionGenerator::getFunction — ジェネレータの関数名 ... を取得する 説明 public function ReflectionGenerator::getFunction (): ReflectionFunctionAbstract ReflectionFunctionAbstract から派生したクラスを返すことによって、 取得したジェ ... れは 関数の場合は ReflectionFunction ですし、 メソッドの場合は ReflectionMethod になります。 変更履歴 バージョン 説明 8.4.0 ReflectionGenerator::getFunction() は、 ジェネレータの実行が終了した後に呼び出すことができるようになりました。 例 例1 ReflectionGenerator::get ... Function() の例 <?php function gen () { yield 1 ; } $gen = gen (); $reflectionGen = new ReflectionGenerator ( $gen ); var_dump ( $reflectionGen -> getFunction ()); 上の例の出力は、 たとえば以下のようになります。 object(ReflectionF ...
https://man.mtool.work/php/8.3/reflectiongenerator.getfunction.html
実行中の Generator オブジェクトを取得する 9556
« ReflectionGenerator::getExecutingFile ReflectionGenerator::getExecutingLine » PHP Manual ReflectionGenerator 実行中の Generator オブジェクトを取得する 検索 ReflectionGenerator::getExecutingGenerator (PHP 7, PHP 8) ReflectionGenerator::get ... ExecutingGenerator — 実行中の Generator オブジェクトを取得する 説明 public function ReflectionGenerator::getExecutingGenerator (): Generator 実行中の Generator オブジェクトを取得します。 パラメータ この関数にはパラメータはあり ... ません。 戻り値 現在実行中の Generator オブジェクトを返します。 例 例1 ReflectionGenerator::getExecutingGenerator() の例 <?php class GenExample { public function gen () { yield 1 ; } } $gen = (new GenExample )-> g ... en (); $reflectionGen = new ReflectionGenerator ( $gen ); $gen2 = $reflectionGen -> getExecutingGenerator (); var_dump ( $gen2 === $gen ); var_dump ( $gen2 -> current ()) ...
https://man.mtool.work/php/8.3/reflectiongenerator.getexecutinggenerator.html
現在実行中のジェネレータの行を取得する 9556
« ReflectionGenerator::getExecutingGenerator ReflectionGenerator::getFunction » PHP Manual ReflectionGenerator 現在実行中のジェネレータの行を取得する 検索 ReflectionGenerator::getExecutingLine (PHP 7, PHP 8) ReflectionGenerator::getExecutin ... gLine — 現在実行中のジェネレータの行を取得する 説明 public function ReflectionGenerator::getExecutingLine (): int 現在実行中のジェネレータの行を取得します。 パラメータ この関数にはパラメータはありません。 戻り値 ... 現在実行中のジェネレータの式の行番号を返します。 例 例1 ReflectionGenerator::getExecutingLine() の例 <?php class GenExample { public function gen () { yield 1 ; } } $gen = (new GenExample )-> gen () ... ; $reflectionGen = new ReflectionGenerator ( $gen ); echo "Line: { $reflectionGen -> getExecutingLine ()} " ; 上の例の出力は、 たとえば以下のようになります。 Line: 7 ...
https://man.mtool.work/php/8.3/reflectiongenerator.getexecutingline.html
ジェネレータの関数名を取得する 9556
« ReflectionGenerator::getExecutingLine ReflectionGenerator::getThis » PHP Manual ReflectionGenerator ジェネレータの関数名を取得する 検索 ReflectionGenerator::getFunction (PHP 7, PHP 8) ReflectionGenerator::getFunction — ジェネレータの関数名 ... を取得する 説明 public function ReflectionGenerator::getFunction (): ReflectionFunctionAbstract ReflectionFunctionAbstract から派生したクラスを返すことによって、 取得したジェ ... れは 関数の場合は ReflectionFunction ですし、 メソッドの場合は ReflectionMethod になります。 変更履歴 バージョン 説明 8.4.0 ReflectionGenerator::getFunction() は、 ジェネレータの実行が終了した後に呼び出すことができるようになりました。 例 例1 ReflectionGenerator::get ... Function() の例 <?php function gen () { yield 1 ; } $gen = gen (); $reflectionGen = new ReflectionGenerator ( $gen ); var_dump ( $reflectionGen -> getFunction ()); 上の例の出力は、 たとえば以下のようになります。 object(ReflectionF ...
https://man.mtool.work/php/8.3/reflectiongenerator.getfunction.html
現在実行中のジェネレータのファイル名を取得する 9541
« ReflectionGenerator::__construct ReflectionGenerator::getExecutingGenerator » PHP Manual ReflectionGenerator 現在実行中のジェネレータのファイル名を取得する 検索 ReflectionGenerator::getExecutingFile (PHP 7, PHP 8) ReflectionGenerator::get ... ExecutingFile — 現在実行中のジェネレータのファイル名を取得する 説明 public function ReflectionGenerator::getExecutingFile (): string 現在実行中のジェネレータのファイル名をフルパスで取得します。 パラメータ この関数にはパラメータ ... はありません。 戻り値 現在実行中のジェネレータのファイル名をフルパスを返します。 例 例1 ReflectionGenerator::getExecutingFile() の例 <?php class GenExample { public function gen () { yield 1 ; } } $gen = (new GenExample )-> gen () ... ; $reflectionGen = new ReflectionGenerator ( $gen ); echo "File: { $reflectionGen -> getExecutingFile ()} " ; 上の例の出力は、 たとえば以下のようになります。 File: / ...
https://man.mtool.work/php/8.3/reflectiongenerator.getexecutingfile.html
PREV 1 2 3 4 NEXT