You are here

public function vfsStreamStructureVisitor::visitBlockDevice in Zircon Profile 8.0

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

visit a block device and process it

Parameters

vfsStreamBlock $block:

Return value

vfsStreamStructureVisitor

Overrides vfsStreamAbstractVisitor::visitBlockDevice

File

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

Class

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

Namespace

org\bovigo\vfs\visitor

Code

public function visitBlockDevice(vfsStreamBlock $block) {
  $this->current['[' . $block
    ->getName() . ']'] = $block
    ->getContent();
  return $this;
}