<?php
/**
 * Created by PhpStorm.
 * User: tandunzhao
 * Date: 2017/11/17
 * Time: 下午4:40
 */

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


class PaymentTransformer
{
    public function transform($payment){
        return [
            'withdraw_cash_id' => $payment->withdraw_cash_id,
            'amount' =>(float) ($payment->amount),
            'remark' => $payment->remark,
            'pay_time'   =>  date('Y-m-d H:i:s',strtotime($payment->pay_time)),
            'status' => $payment->status,
//            'is_company' => (float) $payment->is_company,
        ];
    }
}