public function remove($key)
    {
        $unit = $this->searchForId($key);
        if ($unit) {
            $unit->parentNode->removeChild($unit);
        }

        return $this;
    }
public function remove($key)
    {
        $unit = $this->searchForId($key);
        if ($unit) {
            $unit->parentNode->removeChild($unit);
        }

        return $this;
    }
public function remove ( $ key ) { $ unit = $ this -> searchForId ( $ key ) ; if ( $ unit ) { $ unit -> parentNode -> removeChild ( $ unit ) ; } return $ this ; }
Search for an entry with the given id and remove it if found.

@param string $key The language key to be searched.

@return XliffFile
Search for an entry with the given id and remove it if found .