protected function setDestinationRoot($destination)
    {
        $this->options['root'] = dirname($destination) != '.'
            ? implode('/', array_fill(0, count(explode('/', dirname($destination))), '..')) . '/'
            : './';
    }
protected function setDestinationRoot($destination)
    {
        $this->options['root'] = dirname($destination) != '.'
            ? implode('/', array_fill(0, count(explode('/', dirname($destination))), '..')) . '/'
            : './';
    }
protected function setDestinationRoot ( $ destination ) { $ this -> options [ 'root' ] = dirname ( $ destination ) != '.' ? implode ( '/' , array_fill ( 0 , count ( explode ( '/' , dirname ( $ destination ) ) ) , '..' ) ) . '/' : './' ; }
Sets the relative path to the root of the generated contents.

Basically this method takes the depth of the given destination and replaces it with `..` unless the destination
directory name is `.`.

@param string $destination The destination path relative to the target folder.

@see $options for where the 'root' variable is set.

@return void
Sets the relative path to the root of the generated contents .