original_string: private function _createOffer(array $response)
      {
          $model = new Offer();
          $model->setId($response['id']);
          $model->setName($response['name']);
          $model->setAmount($response['amount']);
          $model->setCurrency($response['currency']);
          $model->setInterval($response['interval']);
          $model->setTrialPeriodDays($response['trial_period_days']);
          $model->setCreatedAt($response['created_at']);
          $model->setUpdatedAt($response['updated_at']);
          $model->setSubscriptionCount($response['subscription_count']['active'], $response['subscription_count']['inactive']);
          $model->setAppId($response['app_id']);
          return $model;
      }
code: private function _createOffer(array $response)
      {
          $model = new Offer();
          $model->setId($response['id']);
          $model->setName($response['name']);
          $model->setAmount($response['amount']);
          $model->setCurrency($response['currency']);
          $model->setInterval($response['interval']);
          $model->setTrialPeriodDays($response['trial_period_days']);
          $model->setCreatedAt($response['created_at']);
          $model->setUpdatedAt($response['updated_at']);
          $model->setSubscriptionCount($response['subscription_count']['active'], $response['subscription_count']['inactive']);
          $model->setAppId($response['app_id']);
          return $model;
      }
code_tokens: private function _createOffer ( array $ response ) { $ model = new Offer ( ) ; $ model -> setId ( $ response [ 'id' ] ) ; $ model -> setName ( $ response [ 'name' ] ) ; $ model -> setAmount ( $ response [ 'amount' ] ) ; $ model -> setCurrency ( $ response [ 'currency' ] ) ; $ model -> setInterval ( $ response [ 'interval' ] ) ; $ model -> setTrialPeriodDays ( $ response [ 'trial_period_days' ] ) ; $ model -> setCreatedAt ( $ response [ 'created_at' ] ) ; $ model -> setUpdatedAt ( $ response [ 'updated_at' ] ) ; $ model -> setSubscriptionCount ( $ response [ 'subscription_count' ] [ 'active' ] , $ response [ 'subscription_count' ] [ 'inactive' ] ) ; $ model -> setAppId ( $ response [ 'app_id' ] ) ; return $ model ; }
docstring: Creates and fills a offer model
  
  @param array $response
  @return Offer
docstring_tokens: Creates and fills a offer model