Documentación offline PHP master

ReflectionGenerator::__construct

master Ver versión oficial en línea Licencia CC-BY-3.0Descargado el 2026-08-02

En esta página

ReflectionGenerator::__construct

Construye un objeto ReflectionGenerator

Descripción#

public ReflectionGenerator::__construct(Generator $generator)
```php

Construye un objeto `ReflectionGenerator`.

## Parámetros

`generator`  
Un objeto generator.

## Ejemplos

Ejemplo con ReflectionGenerator::\_\_construct
getFunction()->name} Line: {$reflectionGen->getExecutingLine()} File: {$reflectionGen->getExecutingFile()} output; ```php Resultado del ejemplo anterior es similar a: gen Line: 5 File: /path/to/file/example.php ## Véase también ReflectionGenerator::getFunction, ReflectionGenerator::getExecutingLine, ReflectionGenerator::getExecutingFile ?>