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

@param  string  $parentPath
@internal  only to be set by parent
@since   1.2.0
sets parent path