Interface for stream contents that are able to store other stream contents.

 Methods

adds child to the directory

addChild(\org\bovigo\vfs\vfsStreamContent $child) 

returns the child with the given name

getChild(string $name) : \org\bovigo\vfs\vfsStreamContent

Parameters

$name

string

Returns

returns a list of children for this directory

getChildren() : \org\bovigo\vfs\vfsStreamContent[]

checks whether the container contains a child with the given name

hasChild(string $name) : bool

Parameters

$name

string

Returns

bool

checks whether directory contains any children

hasChildren() : bool

since 0.10.0

Returns

bool

removes child from the directory

removeChild(string $name) : bool

Parameters

$name

string

Returns

bool