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

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

class SubstituteOrderTransformer
{
    public function transform($item)
    {
        return [
            'distribution_channel_id' => $item->distribution_channel_id,
            'date' => $item->date,
            'users_num' => $item->users_num,
            'amount' => $item->amount,
            'click_substitute_order_pay_button_uv' => $item->click_substitute_order_pay_button_uv,
            'show_substitute_order_page_uv' => $item->show_substitute_order_page_uv,
            'num' => $item->num,
            'success_num' => $item->success_num,
        ];
    }
}