protected function insertRow($rawId, $id, $name, $qty, $price, $attributes = [])
    {
        $newRow = $this->makeRow($rawId, $id, $name, $qty, $price, $attributes);

        $cart = $this->getCart();

        $cart->put($rawId, $newRow);

        $this->save($cart);

        return $newRow;
    }
protected function insertRow($rawId, $id, $name, $qty, $price, $attributes = [])
    {
        $newRow = $this->makeRow($rawId, $id, $name, $qty, $price, $attributes);

        $cart = $this->getCart();

        $cart->put($rawId, $newRow);

        $this->save($cart);

        return $newRow;
    }
protected function insertRow ( $ rawId , $ id , $ name , $ qty , $ price , $ attributes = [ ] ) { $ newRow = $ this -> makeRow ( $ rawId , $ id , $ name , $ qty , $ price , $ attributes ) ; $ cart = $ this -> getCart ( ) ; $ cart -> put ( $ rawId , $ newRow ) ; $ this -> save ( $ cart ) ; return $ newRow ; }
Create a new row Object.

@param string $rawId      The ID of the new row
@param string $id         Unique ID of the item
@param string $name       Name of the item
@param int    $qty        Item qty to add to the cart
@param float  $price      Price of one item
@param array  $attributes Array of additional options, such as 'size' or 'color'

@return Item
Create a new row Object .