protected function makeRow($rawId, $id, $name, $qty, $price, array $attributes = [])
    {
        return new Item(array_merge([
                                     '__raw_id' => $rawId,
                                     'id' => $id,
                                     'name' => $name,
                                     'qty' => $qty,
                                     'price' => $price,
                                     'total' => $qty * $price,
                                     '__model' => $this->model,
                                    ], $attributes));
    }
protected function makeRow($rawId, $id, $name, $qty, $price, array $attributes = [])
    {
        return new Item(array_merge([
                                     '__raw_id' => $rawId,
                                     'id' => $id,
                                     'name' => $name,
                                     'qty' => $qty,
                                     'price' => $price,
                                     'total' => $qty * $price,
                                     '__model' => $this->model,
                                    ], $attributes));
    }
protected function makeRow ( $ rawId , $ id , $ name , $ qty , $ price , array $ attributes = [ ] ) { return new Item ( array_merge ( [ '__raw_id' => $ rawId , 'id' => $ id , 'name' => $ name , 'qty' => $ qty , 'price' => $ price , 'total' => $ qty * $ price , '__model' => $ this -> model , ] , $ attributes ) ) ; }
Make a row item.

@param string $rawId      raw id
@param mixed  $id         item id
@param string $name       item name
@param int    $qty        quantity
@param float  $price      price
@param array  $attributes other attributes

@return Item
Make a row item .