You are here

public function vfsStreamDirectory::addChild in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStreamDirectory.php \org\bovigo\vfs\vfsStreamDirectory::addChild()

adds child to the directory

Parameters

vfsStreamContent $child:

Overrides vfsStreamContainer::addChild

File

vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStreamDirectory.php, line 121

Class

vfsStreamDirectory
Directory container.

Namespace

org\bovigo\vfs

Code

public function addChild(vfsStreamContent $child) {
  $child
    ->setParentPath($this
    ->path());
  $this->children[$child
    ->getName()] = $child;
  $this
    ->updateModifications();
}