categoryId = $categoryId; $this->apiParas["category_id"] = $categoryId; } public function getCategoryId() { return $this->categoryId; } public function setCategoryName($categoryName) { $this->categoryName = $categoryName; $this->apiParas["category_name"] = $categoryName; } public function getCategoryName() { return $this->categoryName; } public function setParentId($parentId) { $this->parentId = $parentId; $this->apiParas["parent_id"] = $parentId; } public function getParentId() { return $this->parentId; } public function getApiMethodName() { return "taobao.picture.category.update"; } public function getApiParas() { return $this->apiParas; } public function check() { RequestCheckUtil::checkNotNull($this->categoryId,"categoryId"); RequestCheckUtil::checkMaxLength($this->categoryName,20,"categoryName"); } public function putOtherTextParam($key, $value) { $this->apiParas[$key] = $value; $this->$key = $value; } }