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

since 0.10.0
see \org\bovigo\vfs\visitor\https://github.com/mikey179/vfsStream/issues/10

 Methods

constructor

__construct() 
API

api

returns structure of visited contents

getStructure() : array
API

api

Returns

array

resets structure so visitor could be reused

reset() : \org\bovigo\vfs\visitor\vfsStreamStructureVisitor

visit a content and process it

visit(\org\bovigo\vfs\vfsStreamContent $content) : \org\bovigo\vfs\visitor\vfsStreamVisitor
Inherited

inherited_from \org\bovigo\vfs\visitor\vfsStreamAbstractVisitor::visit()

Parameters

Exceptions

\InvalidArgumentException

Returns

visit a directory and process it

visitDirectory(\org\bovigo\vfs\vfsStreamDirectory $dir) : \org\bovigo\vfs\visitor\vfsStreamStructureVisitor

visit a file and process it

visitFile(\org\bovigo\vfs\vfsStreamFile $file) : \org\bovigo\vfs\visitor\vfsStreamStructureVisitor

 Properties

 

poiting to currently iterated directory

$current 

type array
 

collected structure

$structure 

type array