public function addReplacement( string $name, ?string $value ) : VfsHandler
   {

      if ( null === $value )
      {

         unset( $this->_replacements[ $name ] );

         return $this;

      }

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

      return $this;

   }
public function addReplacement( string $name, ?string $value ) : VfsHandler
   {

      if ( null === $value )
      {

         unset( $this->_replacements[ $name ] );

         return $this;

      }

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

      return $this;

   }
public function addReplacement ( string $ name , ? string $ value ) : VfsHandler { if ( null === $ value ) { unset ( $ this -> _replacements [ $ name ] ) ; return $ this ; } $ this -> _replacements [ $ name ] = $ value ; return $ this ; }
Add or set a replacement.

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

@param  string      $name  The name of the replacement
@param  string|null $value The replacement string value (or NULL to remove a replacement)
@return \Niirrty\IO\Vfs\VfsHandler
Add or set a replacement .