goodsId = $goodsId; return $this; } public function getGoodsId() { return $this->goodsId; } public function setAlipayGoodsId($alipayGoodsId) { $this->alipayGoodsId = $alipayGoodsId; return $this; } public function getAlipayGoodsId() { return $this->alipayGoodsId; } 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 setGoodsCategory($goodsCategory) { $this->goodsCategory = $goodsCategory; return $this; } public function getGoodsCategory() { return $this->goodsCategory; } public function setCategoriesTree($categoriesTree) { $this->categoriesTree = $categoriesTree; return $this; } public function getCategoriesTree() { return $this->categoriesTree; } public function setBody($body) { $this->body = $body; return $this; } public function getBody() { return $this->body; } public function setShowUrl($showUrl) { $this->showUrl = $showUrl; return $this; } public function getShowUrl() { return $this->showUrl; } public function jsonSerialize() { return [ 'goods_id' => $this->goodsId, 'alipay_goods_id' => $this->alipayGoodsId, 'goods_name' => $this->goodsName, 'quantity' => $this->quantity, 'price' => $this->price, 'goods_category' => $this->goodsCategory, 'categories_tree' => $this->categoriesTree, 'body' => $this->body, 'show_url' => $this->showUrl, ]; } }