(PHP 7)
はじめに
ReflectionGenerator クラスは、ジェネレータに関する情報を報告します。
クラス概要
ReflectionGenerator {
public __construct
( Generator $generator
)
public getExecutingFile ( ) : string
public getExecutingGenerator ( ) : Generator
public getExecutingLine ( ) : int
public getFunction ( ) : ReflectionFunctionAbstract
public getThis ( ) : object
public getTrace
([ int $options
= DEBUG_BACKTRACE_PROVIDE_OBJECT
] ) : array
}
目次
- ReflectionGenerator::__construct — ReflectionGenerator オブジェクトを構築する
- ReflectionGenerator::getExecutingFile — 現在実行中のジェネレータのファイル名を取得する
- ReflectionGenerator::getExecutingGenerator — 実行中の Generator オブジェクトを取得する
- ReflectionGenerator::getExecutingLine — 現在実行中のジェネレータの行を取得する
- ReflectionGenerator::getFunction — ジェネレータの関数名を取得する
- ReflectionGenerator::getThis — ジェネレータの $this の値を取得する
- ReflectionGenerator::getTrace — 実行中のジェネレータのトレースを取得する
/* メソッド */