You are here

public function vfsStreamStructureVisitor::reset 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::reset()

resets structure so visitor could be reused

Return value

vfsStreamStructureVisitor

1 call to vfsStreamStructureVisitor::reset()
vfsStreamStructureVisitor::__construct in vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/visitor/vfsStreamStructureVisitor.php
constructor

File

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

Class

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

Namespace

org\bovigo\vfs\visitor

Code

public function reset() {
  $this->structure = array();
  $this->current =& $this->structure;
  return $this;
}