/** * Hydrate the public properties * * @param $data */ public function hydrate($data) { parent::hydrate($data); if (!empty($this->offer)) { $this->offer = ProductOfferResponse::make($this->offer); } }
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); } }