<?php
/**
 * Created by PhpStorm.
 * User: hp
 * Date: 2017/12/1
 * Time: 11:42
 */

namespace App\Http\Controllers\Channel\Trade\Transformers;

class OrderDayStatTransformer
{
    public function transform($item)
    {
        return [
            'date' => $item->date,
            'pay_success_user_num' => (float)$item->pay_success_user_num,
            'ticket_recharge_user_num' => (float)$item->ticket_recharge_user_num,
            'year_recharge_user_num' => (float)$item->year_recharge_user_num,
            'total_recharge_amount' => (float)$item->total_recharge_amount,
            'unpaid_num' => (float)$item->unpaid_num,
            'paid_num' => (float)$item->paid_num,
            'promotion_total_uv' => (float)$item->promotion_total_uv,
            'promotion_total_pv' => (float)$item->promotion_total_pv,
            'force_user_num' => (float)$item->force_user_num
        ];
    }
}