public function remove($key)
    {
        if (!isset($this->map[$key])) {
            return null;
        }

        $removed = $this->map[$key];
        unset($this->map[$key]);
        if ($removed instanceof AbstractCriterion) {
            return $removed->getValue();
        }

        return $removed;
    }
public function remove($key)
    {
        if (!isset($this->map[$key])) {
            return null;
        }

        $removed = $this->map[$key];
        unset($this->map[$key]);
        if ($removed instanceof AbstractCriterion) {
            return $removed->getValue();
        }

        return $removed;
    }
public function remove ( $ key ) { if ( ! isset ( $ this -> map [ $ key ] ) ) { return null ; } $ removed = $ this -> map [ $ key ] ; unset ( $ this -> map [ $ key ] ) ; if ( $ removed instanceof AbstractCriterion ) { return $ removed -> getValue ( ) ; } return $ removed ; }
Remove an object from the criteria.

@param  string $key A string with the key to be removed.
@return mixed  The removed value.
Remove an object from the criteria .