您的位置:首页 > 编程语言 > PHP开发

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

2015-07-27 10:30 645 查看
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;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: