Exemplo n.º 1
0
 /**
  * @param TransactionItem $item
  * @return $this
  * @throws \Exception
  */
 public function addItem(TransactionItem $item)
 {
     if ($item->isValid() === false) {
         throw new \Exception('Invalid product item supplied');
     }
     $this->_items[] = $item;
     return $this;
 }