public function remove($key)
    {
        if (is_object($key)) {
            $key = spl_object_hash($key);
        }

        unset($this->data[$key]);

        return $this;
    }
public function remove($key)
    {
        if (is_object($key)) {
            $key = spl_object_hash($key);
        }

        unset($this->data[$key]);

        return $this;
    }
public function remove ( $ key ) { if ( is_object ( $ key ) ) { $ key = spl_object_hash ( $ key ) ; } unset ( $ this -> data [ $ key ] ) ; return $ this ; }
Remove a specific key value pair

@param string $key A key to remove or an object in the same state

@return GenericCollection
Remove a specific key value pair