|
- <?php
- /**
- * TOP API: taobao.xhotel.rate.relationshipwithroom.get request
- *
- * @author auto create
- * @since 1.0, 2016.04.13
- */
-
- namespace backend\modules\hotel\models\Ali;
- use common\models\commonModel;
-
- class XhotelRateRelationshipwithroomGetRequest extends commonModel
- {
- /**
- * 页数
- **/
- public $page_no;
-
- /**
- * rpId
- **/
- public $rp_id;
-
- public $apiParas = array();
-
- public function setAttributes($values, $safeOnly = true)
- {
- if (is_array($values)) {
- $attributes = array_flip($safeOnly ? $this->safeAttributes() : $this->attributes());
- foreach ($values as $name => $value) {
- if (isset($attributes[$name])) {
- $this->apiParas[$name] = $value;
- } elseif ($safeOnly) {
- $this->onUnsafeAttribute($name, $value);
- }
- }
- }
- parent::setAttributes($values, $safeOnly);
- }
-
- public function rules()
- {
- return [
- [['rp_id'], 'required'],
- [['page_no'], 'number']
- ];
- }
-
- public function setPageNo($pageNo)
- {
- $this->page_no = $pageNo;
- $this->apiParas["page_no"] = $pageNo;
- }
-
- public function getPageNo()
- {
- return $this->page_no;
- }
-
- public function setRpId($rpId)
- {
- $this->rp_id = $rpId;
- $this->apiParas["rp_id"] = $rpId;
- }
-
- public function getRpId()
- {
- return $this->rp_id;
- }
-
- public function getApiMethodName()
- {
- return "taobao.xhotel.rate.relationshipwithroom.get";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|