protected function iterate (ContextInterface $root) 
	{
		$this->generateIndexFile ($root);

		foreach ($root->getChildren() as $item) 
		{
			if ($item instanceof FileContext)
			{
				$this->generateFile ($item);
			}
			elseif ($item instanceof DirectoryContext)
			{
				$this->iterate ($item);
			}
		}
	}
protected function iterate (ContextInterface $root) 
	{
		$this->generateIndexFile ($root);

		foreach ($root->getChildren() as $item) 
		{
			if ($item instanceof FileContext)
			{
				$this->generateFile ($item);
			}
			elseif ($item instanceof DirectoryContext)
			{
				$this->iterate ($item);
			}
		}
	}
protected function iterate ( ContextInterface $ root ) { $ this -> generateIndexFile ( $ root ) ; foreach ( $ root -> getChildren ( ) as $ item ) { if ( $ item instanceof FileContext ) { $ this -> generateFile ( $ item ) ; } elseif ( $ item instanceof DirectoryContext ) { $ this -> iterate ( $ item ) ; } } }
Iterate the report
@param ContextInterface $root
@return void
Iterate the report