コード例 #1
0
 /**
  * Hydrate the public properties
  *
  * @param $data
  */
 public function hydrate($data)
 {
     parent::hydrate($data);
     if (!empty($this->offer)) {
         $this->offer = ProductOfferResponse::make($this->offer);
     }
 }
コード例 #2
0
 public function hydrate($data)
 {
     parent::hydrate($data);
     if (!empty($this->subscription)) {
         $this->subscription = SubscriptionPurchaseResponse::make($this->subscription);
     }
     if (!empty($this->offer)) {
         $this->offer = ProductOfferResponse::make($this->offer);
     }
 }