Results of 1 - 5 of about 5 for getThis (0.001 sec.)
- ReflectionGenerator::getThis — ジェネレータの $this の値を取得する | PHP 8.3 12685
- ReflectionGenerator::getThis (PHP 7, PHP 8) ReflectionGenerator::getThis — ジェネレータの $this の値を取得する 説明 public function ReflectionGenerator::getThis (): ? object ジェネレータがアクセスできる $this の値を取得します。 パラメータ こ
... の値を返します。 ジェネレータがクラスコンテキストの中で作られていない場合は null を返します。 例 例1 ReflectionGenerator::getThis() の例 <?php class GenExample { public function gen () { yield 1 ; } } $gen = (new GenExample )-> gen (); $reflectionGen = ... new ReflectionGenerator ( $gen ); var_dump ( $reflectionGen -> getThis ()); 上の例の出力は、 たとえば以下のようになります。 object(GenExample)#3 (0) { } 参考 ReflectionGenerator::getFunction() ...
-
https://man.mtool.work/php/8.3/reflectiongenerator.getthis.html
- ReflectionGenerator クラス | PHP 8.3 9284
- ReflectionGenerator クラス (PHP 7, PHP 8) はじめに ReflectionGenerator クラスは、ジェネレータに関する情報を報告します。 クラス概要 final class ReflectionGenerator { /* メソッド */ public function __construct ( Generator $generator ) public
... erator public function getExecutingLine (): int public function getFunction (): ReflectionFunctionAbstract public function getThis (): ? object public function getTrace ( int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT ): array public function isClosed () ... 在実行中のジェネレータの行を取得する ReflectionGenerator::getFunction — ジェネレータの関数名を取得する ReflectionGenerator::getThis — ジェネレータの $this の値を取得する ReflectionGenerator::getTrace — 実行中のジェネレータのトレースを取得する ReflectionG ...
-
https://man.mtool.work/php/8.3/class.reflectiongenerator.html
- ReflectionGenerator::getFunction — ジェネレータの関数名を取得する | PHP 8.3 8236
- ReflectionGenerator::getFunction (PHP 7, PHP 8) ReflectionGenerator::getFunction — ジェネレータの関数名を取得する 説明 public function ReflectionGenerator::getFunction (): ReflectionFunctionAbstract ReflectionFunctionAbstract から派生したク
... 、 たとえば以下のようになります。 object(ReflectionFunction)#3 (1) { ["name"]=> string(3) "gen" } 参考 ReflectionGenerator::getThis() - ジェネレータの $this の値を取得する ReflectionGenerator::getTrace() - 実行中のジェネレータのトレースを取得する 他のマニ ...
-
https://man.mtool.work/php/8.3/reflectiongenerator.getfunction.html
- ReflectionGenerator::getTrace — 実行中のジェネレータのトレースを取得する | PHP ... 8162
- ReflectionGenerator::getTrace (PHP 7, PHP 8) ReflectionGenerator::getTrace — 実行中のジェネレータのトレースを取得する 説明 public function ReflectionGenerator::getTrace ( int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT ): array 現在実行中のジ
... ["args"]=> array(0) { } } } 参考 ReflectionGenerator::getFunction() - ジェネレータの関数名を取得する ReflectionGenerator::getThis() - ジェネレータの $this の値を取得する 他のマニュアルの関連ページ Python 2.3 Python 3.3 Python traceback Python gen Pytho ...
-
https://man.mtool.work/php/8.3/reflectiongenerator.gettrace.html
- リフレクション | PHP 8.3 7537
- リフレクション はじめに PHP には完全なリフレクション API が付属しており、 クラス、インターフェイス、関数、メソッド、そして拡張モジュールについて 型やプロパティを実行時に調べることができます。 さらに、このリフレクション API は関数、クラス、メ
... 在実行中のジェネレータの行を取得する ReflectionGenerator::getFunction — ジェネレータの関数名を取得する ReflectionGenerator::getThis — ジェネレータの $this の値を取得する ReflectionGenerator::getTrace — 実行中のジェネレータのトレースを取得する ReflectionG ...
-
https://man.mtool.work/php/8.3/book.reflection.html
PREV
1
NEXT