Reflection ReflectionGenerator 클래스
(PHP 7, PHP 8)
소개
ReflectionGenerator 클래스는 생성기에 대한 정보를 보고합니다.
클래스 개요
final class ReflectionGenerator {
/* Methods */
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
}
변경 로그
버전 | 설명 |
---|---|
8.0.0 | The class is final now. |
목차
- ReflectionGenerator::__construct — ReflectionGenerator 객체를 생성합니다.
- ReflectionGenerator::getExecutingFile — 현재 실행 중인 생성기의 파일 이름을 가져옵니다.
- ReflectionGenerator::getExecutingGenerator — 실행 중인 Generator 객체를 가져옵니다.
- ReflectionGenerator::getExecutingLine — 생성기의 현재 실행 중인 라인을 가져옵니다.
- ReflectionGenerator::getFunction — 생성기의 함수 이름을 가져옵니다.
- ReflectionGenerator::getThis — 생성기의 $this 값을 가져옵니다.
- ReflectionGenerator::getTrace — 실행 중인 생성기의 추적을 가져옵니다.