public function addItem(Item $item)
    {
        $itemUUID = $item->composeUUID();

        $this->elementsToUpdate[$itemUUID] = $item;
        unset($this->elementsToDelete[$itemUUID]);
    }
public function addItem(Item $item)
    {
        $itemUUID = $item->composeUUID();

        $this->elementsToUpdate[$itemUUID] = $item;
        unset($this->elementsToDelete[$itemUUID]);
    }
public function addItem ( Item $ item ) { $ itemUUID = $ item -> composeUUID ( ) ; $ this -> elementsToUpdate [ $ itemUUID ] = $ item ; unset ( $ this -> elementsToDelete [ $ itemUUID ] ) ; }
Generate item document.

@param Item $item
Generate item document .