You are here

public function vfsStreamPrintVisitor::visitBlockDevice 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::visitBlockDevice()

visit a block device and process it

Parameters

vfsStreamBlock $block:

Return value

vfsStreamPrintVisitor

Overrides vfsStreamAbstractVisitor::visitBlockDevice

File

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

Class

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

Namespace

org\bovigo\vfs\visitor

Code

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