You are here

public function vfsStreamDirectory::setParentPath in Zircon Profile 8

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

sets parent path

@internal only to be set by parent @since 1.2.0

Parameters

string $parentPath:

Overrides vfsStreamAbstractContent::setParentPath

File

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

Class

vfsStreamDirectory
Directory container.

Namespace

org\bovigo\vfs

Code

public function setParentPath($parentPath) {
  parent::setParentPath($parentPath);
  foreach ($this->children as $child) {
    $child
      ->setParentPath($this
      ->path());
  }
}