public function set($id, $item)
    {
        $this->checkType($item);
        $this->items[$id] = $item;
        return $this;
    }
public function set($id, $item)
    {
        $this->checkType($item);
        $this->items[$id] = $item;
        return $this;
    }
public function set ( $ id , $ item ) { $ this -> checkType ( $ item ) ; $ this -> items [ $ id ] = $ item ; return $ this ; }
Set an item for an id

@param mixed $id
@param mixed $item

@return self
Set an item for an id