public function addItem($item)
    {
        if (!$this->getItems()) {
            return $this->setItems(array($item));
        } else {
            return $this->setItems(
                array_merge($this->getItems(), array($item))
            );
        }
    }
public function addItem($item)
    {
        if (!$this->getItems()) {
            return $this->setItems(array($item));
        } else {
            return $this->setItems(
                array_merge($this->getItems(), array($item))
            );
        }
    }
public function addItem ( $ item ) { if ( ! $ this -> getItems ( ) ) { return $ this -> setItems ( array ( $ item ) ) ; } else { return $ this -> setItems ( array_merge ( $ this -> getItems ( ) , array ( $ item ) ) ) ; } }
Append Items to the list.

@param \PayU\Api\Item $item

@return $this
Append Items to the list .