public function vfsStreamPrintVisitor::visitDirectory in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/visitor/vfsStreamPrintVisitor.php \org\bovigo\vfs\visitor\vfsStreamPrintVisitor::visitDirectory()
visit a directory and process it
Parameters
vfsStreamDirectory $dir:
Return value
Overrides vfsStreamVisitor::visitDirectory
File
- vendor/
mikey179/ vfsStream/ src/ main/ php/ org/ bovigo/ vfs/ visitor/ vfsStreamPrintVisitor.php, line 86
Class
- vfsStreamPrintVisitor
- Visitor which traverses a content structure recursively to print it to an output stream.
Namespace
org\bovigo\vfs\visitorCode
public function visitDirectory(vfsStreamDirectory $dir) {
$this
->printContent($dir
->getName());
$this->depth++;
foreach ($dir as $child) {
$this
->visit($child);
}
$this->depth--;
return $this;
}