<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>The ReflectionGenerator class</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="reflectiontype.tostring.html">ReflectionType::__toString</a></div> <div class="next" style="text-align: right; float: right;"><a href="reflectiongenerator.construct.html">ReflectionGenerator::__construct</a></div> <div class="up"><a href="book.reflection.html">Reflection</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="class.reflectiongenerator" class="reference"> <h1 class="title">The ReflectionGenerator class</h1> <div class="partintro"><p class="verinfo">(PHP 7)</p> <div class="section" id="reflectiongenerator.intro"> <h2 class="title">Introduction</h2> <p class="para"> The <strong class="classname">ReflectionGenerator</strong> class reports information about a generator. </p> </div> <div class="section" id="reflectiongenerator.synopsis"> <h2 class="title">Class synopsis</h2> <div class="classsynopsis"> <div class="ooclass"></div> <div class="classsynopsisinfo"> <span class="ooclass"> <strong class="classname">ReflectionGenerator</strong> </span> {</div> <div class="classsynopsisinfo classsynopsisinfo_comment">/* Methods */</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><a href="reflectiongenerator.construct.html" class="methodname">__construct</a></span> ( <span class="methodparam"><span class="type"><a href="class.generator.html" class="type Generator">Generator</a></span> <code class="parameter">$generator</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">string</span> <span class="methodname"><a href="reflectiongenerator.getexecutingfile.html" class="methodname">getExecutingFile</a></span> ( <span class="methodparam">void</span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">Generator</span> <span class="methodname"><a href="reflectiongenerator.getexecutinggenerator.html" class="methodname">getExecutingGenerator</a></span> ( <span class="methodparam">void</span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">int</span> <span class="methodname"><a href="reflectiongenerator.getexecutingline.html" class="methodname">getExecutingLine</a></span> ( <span class="methodparam">void</span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">ReflectionFunctionAbstract</span> <span class="methodname"><a href="reflectiongenerator.getfunction.html" class="methodname">getFunction</a></span> ( <span class="methodparam">void</span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">object</span> <span class="methodname"><a href="reflectiongenerator.getthis.html" class="methodname">getThis</a></span> ( <span class="methodparam">void</span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">array</span> <span class="methodname"><a href="reflectiongenerator.gettrace.html" class="methodname">getTrace</a></span> ([ <span class="methodparam"><span class="type">int</span> <code class="parameter">$options</code><span class="initializer"> = DEBUG_BACKTRACE_PROVIDE_OBJECT</span></span> ] )</div> }</div> </div> </div> <h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="reflectiongenerator.construct.html">ReflectionGenerator::__construct</a> — Constructs a ReflectionGenerator object</li><li><a href="reflectiongenerator.getexecutingfile.html">ReflectionGenerator::getExecutingFile</a> — Gets the file name of the currently executing generator</li><li><a href="reflectiongenerator.getexecutinggenerator.html">ReflectionGenerator::getExecutingGenerator</a> — Gets the executing Generator object</li><li><a href="reflectiongenerator.getexecutingline.html">ReflectionGenerator::getExecutingLine</a> — Gets the currently executing line of the generator</li><li><a href="reflectiongenerator.getfunction.html">ReflectionGenerator::getFunction</a> — Gets the function name of the generator</li><li><a href="reflectiongenerator.getthis.html">ReflectionGenerator::getThis</a> — Gets the $this value of the generator</li><li><a href="reflectiongenerator.gettrace.html">ReflectionGenerator::getTrace</a> — Gets the trace of the executing generator</li></ul> </div> <hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="reflectiontype.tostring.html">ReflectionType::__toString</a></div> <div class="next" style="text-align: right; float: right;"><a href="reflectiongenerator.construct.html">ReflectionGenerator::__construct</a></div> <div class="up"><a href="book.reflection.html">Reflection</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>