visitor/vfsStreamPrintVisitor.php
Visitor which traverses a content structure recursively to print it to an output stream.
- Package
- bovigo_vfs
- Subpackage
- visitor
\vfsStreamPrintVisitor
Package: bovigo\vfs\visitor
Parameters
Throws
Visitor which traverses a content structure recursively to print it to an output stream.
- Parent(s)
- \vfsStreamAbstractVisitor < \vfsStreamVisitor
- See
- \https://github.com/mikey179/vfsStream/issues/10
- Since
- 0.10.0
Properties
Methods


__construct(
resource $out
=
STDOUT
)
:
void
constructor
If no file pointer given it will fall back to STDOUT.
Name | Type | Description |
---|---|---|
$out | resource | optional |
Exception | Description |
---|---|
\InvalidArgumentException |


printContent(
\vfsStreamContent $content
)
:
void
helper method to print the content
Parameters
Name | Type | Description |
---|---|---|
$content | \vfsStreamContent |


visit(
\vfsStreamContent $content
)
:
\vfsStreamVisitor
Parameters
Returns
Throws
Name | Type | Description |
---|---|---|
$content | \vfsStreamContent |
Type | Description |
---|---|
\vfsStreamVisitor |
Exception | Description |
---|---|
\InvalidArgumentException |


visitDirectory(
\vfsStreamDirectory $dir
)
:
\vfsStreamPrintVisitor
visit a directory and process it
Parameters
Returns
Name | Type | Description |
---|---|---|
$dir | \vfsStreamDirectory |
Type | Description |
---|---|
\vfsStreamPrintVisitor |


visitFile(
\vfsStreamFile $file
)
:
\vfsStreamPrintVisitor
visit a file and process it
Parameters
Returns
Name | Type | Description |
---|---|---|
$file | \vfsStreamFile |
Type | Description |
---|---|
\vfsStreamPrintVisitor |