You are here

public function vfsStreamPrintVisitor::visitFile in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/visitor/vfsStreamPrintVisitor.php \org\bovigo\vfs\visitor\vfsStreamPrintVisitor::visitFile()

visit a file and process it

Parameters

vfsStreamFile $file:

Return value

vfsStreamPrintVisitor

Overrides vfsStreamVisitor::visitFile

File

vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/visitor/vfsStreamPrintVisitor.php, line 61

Class

vfsStreamPrintVisitor
Visitor which traverses a content structure recursively to print it to an output stream.

Namespace

org\bovigo\vfs\visitor

Code

public function visitFile(vfsStreamFile $file) {
  $this
    ->printContent($file
    ->getName());
  return $this;
}