public function remove($id)
    {
        if ($this->has($id) === false) {
            return;
        }

        $collection = $this->idCollections[$id];

        unset($this->idCollections[$id]);
        unset($this->itemCollections[$collection]);
        unset($this->items[$id]);
    }
public function remove($id)
    {
        if ($this->has($id) === false) {
            return;
        }

        $collection = $this->idCollections[$id];

        unset($this->idCollections[$id]);
        unset($this->itemCollections[$collection]);
        unset($this->items[$id]);
    }
public function remove ( $ id ) { if ( $ this -> has ( $ id ) === false ) { return ; } $ collection = $ this -> idCollections [ $ id ] ; unset ( $ this -> idCollections [ $ id ] ) ; unset ( $ this -> itemCollections [ $ collection ] ) ; unset ( $ this -> items [ $ id ] ) ; }
Removes an item.

@param string $id The identifier of the item
Removes an item .