goodsId = $goodsId; return $this; } public function getGoodsId() { return $this->goodsId; } public function setWxpayGoodsId($wxpayGoodsId) { $this->wxpayGoodsId = $wxpayGoodsId; return $this; } public function getWxpayGoodsId() { return $this->wxpayGoodsId; } public function setGoodsName($goodsName) { $this->goodsName = $goodsName; return $this; } public function getGoodsName() { return $this->goodsName; } public function setQuantity($quantity) { $this->quantity = $quantity; return $this; } public function getQuantity() { return $this->quantity; } public function setPrice($price) { $this->price = $price; return $this; } public function getPrice() { return $this->price; } public function jsonSerialize() { return [ 'goods_id' => $this->goodsId, 'wxpay_goods_id' => $this->wxpayGoodsId, 'goods_name' => $this->goodsName, 'quantity' => $this->quantity, 'price' => $this->price, ]; } }