function vfsStreamDirectory::removeChild
removes child from the directory
Parameters
string $name:
Return value
bool
Overrides vfsStreamContainer::removeChild
File
-
vendor/
mikey179/ vfsstream/ src/ main/ php/ org/ bovigo/ vfs/ vfsStreamDirectory.php, line 134
Class
- vfsStreamDirectory
- Directory container.
Namespace
org\bovigo\vfsCode
public function removeChild($name) {
foreach ($this->children as $key => $child) {
if ($child->appliesTo($name)) {
$child->setParentPath(null);
unset($this->children[$key]);
$this->updateModifications();
return true;
}
}
return false;
}