third_party/vfsstream/vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStreamContainer.php
This file is part of vfsStream.
For the full copyright and license information, please view the LICENSE file that was distributed with this source code.
- Package
- org\bovigo\vfs
\org\bovigo\vfs\vfsStreamContainer
Package:
Default
Parameters
Parameters
Returns
Returns
Parameters
Returns
Returns
Details
Interface for stream contents that are able to store other stream contents.
- Parent(s)
- \IteratorAggregate
Methods
addChild
(
\org\bovigo\vfs\vfsStreamContent
$child)
: void
adds child to the directory
Name | Type | Description |
---|---|---|
$child | \org\bovigo\vfs\vfsStreamContent |
getChild
(string $name)
:
\org\bovigo\vfs\vfsStreamContent
returns the child with the given name
Name | Type | Description |
---|---|---|
$name | string |
Type | Description |
---|---|
\org\bovigo\vfs\vfsStreamContent |
getChildren
()
:
\org\bovigo\vfs\vfsStreamContent[]
returns a list of children for this directory
Type | Description |
---|---|
\org\bovigo\vfs\vfsStreamContent[] |
hasChild
(string $name)
: bool
checks whether the container contains a child with the given name
Name | Type | Description |
---|---|---|
$name | string |
Type | Description |
---|---|
bool |
hasChildren
()
: bool
checks whether directory contains any children
Type | Description |
---|---|
bool |
- Since
- 0.10.0