original_string: 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;
  
     }
code: 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;
  
     }
code_tokens: 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 ; }
docstring: 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
docstring_tokens: Add or set one or more replacements .