id = $id; return $this; } /** * @param string $item_price */ public function setItemPrice( $item_price ) { $this->item_price = $item_price; return $this; } /** * @param string $quantity */ public function setQuantity( $quantity ) { $this->quantity = $quantity; return $this; } public function __toArray() { return array( 'id' => $this->id, 'item_price' => $this->item_price, 'quantity' => $this->quantity, ); } } }