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

namespace App\Http\Controllers\Channel\User\Transformers;
use Hashids;

class UserSubscribeStatsTransformer
{
    public function transform($item){
        return [
            'name'=>$item->nickname,
            'date'=>$item->date,
            'new_subscribe_num'=>$item->new_subscribe_num,
            'one_day_recharge'=>$item->one_day_recharge,
            'three_days_recharge'=>$item->three_days_recharge,
            'seven_days_recharge'=>$item->seven_days_recharge,
            'thirty_days_recharge'=>$item->thirty_days_recharge,
            'sixty_days_recharge'=>$item->sixty_days_recharge,
            'actual_subscribe_arpu'=>$item->actual_subscribe_arpu,
            'new_subscribe_arpu'=>$item->new_subscribe_arpu,
            'recharge_sum'=>$item->recharge_sum,
            'new_sub_recharge_num'=>$item->new_sub_recharge_num,
            'sub_user_orders_num'=>$item->sub_user_orders_num
        ];
    }
}