码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2015-07-27 12:49:08      阅读:143      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!