<?php
/**
 * Created by PhpStorm.
 * Date: 2017/3/31
 * Time: 14:02
 */

namespace App\Http\Controllers\Channel\XChengXu\Transformers;
class StasticalTransformer
{
    public function transform($stat){
        return [
            'date'=>$stat->date,
            'new_user_num'=>$stat->new_user_num,
            'success_order_num'=>$stat->success_order_num,
            'order_num'=>$stat->order_num,
            'recharge'=>$stat->recharge
        ];
    }
}