public function addReplacements( array $replacements ) : VfsHandler
   {

      foreach ( $replacements as $name => $value )
      {

         if ( null === $value )
         {
            unset( $this->_replacements[ $name ] );
            continue;
         }

         $this->_replacements[ $name ] = $value;

      }

      return $this;

   }
public function addReplacements( array $replacements ) : VfsHandler
   {

      foreach ( $replacements as $name => $value )
      {

         if ( null === $value )
         {
            unset( $this->_replacements[ $name ] );
            continue;
         }

         $this->_replacements[ $name ] = $value;

      }

      return $this;

   }
public function addReplacements ( array $ replacements ) : VfsHandler { foreach ( $ replacements as $ name => $ value ) { if ( null === $ value ) { unset ( $ this -> _replacements [ $ name ] ) ; continue ; } $ this -> _replacements [ $ name ] = $ value ; } return $ this ; }
Add or set one or more replacements.

It replaces a part of a path with format ${replacementName}

@param array $replacements Associative array with replacements (keys are the names)
@return \Niirrty\IO\Vfs\VfsHandler
Add or set one or more replacements .