首页 > 其他 > 详细

zendstudio 声明变量类型,让变量自动方法提示

时间:2015-07-27 12:46:46      阅读:200      评论:0      收藏:0      [点我收藏+]

zendstudio 行内注释, 显式声明变量类型,让变量自动方法提示

      $out = [];
        /* @var $row \xxyy\SizeEntity */
      foreach ($rows[ ‘list‘] as $row) {
            $out[ ‘list‘][] = [
                ‘width‘                 => $row->getWidth(),
                ‘height‘                => $row->getHeight(),
            ];
      }


      $out = [];
      /* @var $invoice ChargeInvoice */
      foreach ($response->getChargeInvoice() as $invoice) {
            $tmp = [];
            $tmp[ ‘amount‘] = $invoice->getChargeAmountMicros();
            $tmp[ ‘charge_id‘] = $invoice->getChargeId();
            $tmp[ ‘date‘] = date( ‘Y-m-d‘, $invoice->getChargeEndTimeUtc());
            $out[] = $tmp;
      }

 

zendstudio 声明变量类型,让变量自动方法提示

原文:http://www.cnblogs.com/brookin/p/4679471.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!