コード例 #1
0
 protected function _prepareResult($result)
 {
     $return = parent::_prepareResult($result);
     if (!empty($return->subscriptions)) {
         $tmp = [];
         foreach ($return->subscriptions as $itm) {
             $tmp[] = (new SubscriptionSummaryRequest())->hydrate($itm);
         }
         $return->subscriptions = $tmp;
     }
     return $return;
 }
コード例 #2
0
ファイル: InvoicesRequest.php プロジェクト: fortifi/php-api
 protected function _prepareResult($result)
 {
     $return = parent::_prepareResult($result);
     if (!empty($return->invoices)) {
         $tmp = [];
         foreach ($return->invoices as $itm) {
             $tmp[] = (new InvoiceSummaryRequest())->hydrate($itm);
         }
         $return->invoices = $tmp;
     }
     return $return;
 }