vfsStreamContainer.php
Interface for stream contents that are able to store other stream contents.
- Package
- bovigo_vfs
\vfsStreamContainer
Package: bovigo\vfs
Interface for stream contents that are able to store other stream contents.
- Parent(s)
- \IteratorAggregate
- Children
- \vfsStreamDirectory
Methods


addChild(
\vfsStreamContent $child
)
:
void
adds child to the directory
Parameters
Name | Type | Description |
---|---|---|
$child | \vfsStreamContent |


getChild(
string $name
)
:
\vfsStreamContent
returns the child with the given name
Parameters
Returns
Name | Type | Description |
---|---|---|
$name | string |
Type | Description |
---|---|
\vfsStreamContent |


getChildren(
)
:
\array<vfsStreamContent>
returns a list of children for this directory
Returns
Type | Description |
---|---|
\array<vfsStreamContent> |


hasChild(
string $name
)
:
bool
checks whether the container contains a child with the given name
Parameters
Returns
Name | Type | Description |
---|---|---|
$name | string |
Type | Description |
---|---|
bool |


hasChildren(
)
:
bool
checks whether directory contains any children
Returns
Details
Type | Description |
---|---|
bool |
- Since
- 0.10.0