You are here

public function vfsStreamStructureVisitor::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/vfsStreamStructureVisitor.php \org\bovigo\vfs\visitor\vfsStreamStructureVisitor::visitFile()

visit a file and process it

Parameters

vfsStreamFile $file:

Return value

vfsStreamStructureVisitor

Overrides vfsStreamVisitor::visitFile

File

vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/visitor/vfsStreamStructureVisitor.php, line 52

Class

vfsStreamStructureVisitor
Visitor which traverses a content structure recursively to create an array structure from it.

Namespace

org\bovigo\vfs\visitor

Code

public function visitFile(vfsStreamFile $file) {
  $this->current[$file
    ->getName()] = $file
    ->getContent();
  return $this;
}