public function setPrefix($prefix)
    {
        foreach ($this->storage as &$path) {
            $path->setPrefix((string) $prefix);
        }

        return $this;
    }
public function setPrefix($prefix)
    {
        foreach ($this->storage as &$path) {
            $path->setPrefix((string) $prefix);
        }

        return $this;
    }
public function setPrefix ( $ prefix ) { foreach ( $ this -> storage as & $ path ) { $ path -> setPrefix ( ( string ) $ prefix ) ; } return $ this ; }
Set prefix to all paths.

@param  string $prefix The prefix path you want to prepend when path convert to string.

@return  PathCollection  Return this object to support chaining.

@since  2.0
Set prefix to all paths .