<?php

namespace App\Http\Controllers\Wap\Order\Transformers;
class ChargeListTransformer
{

    public function transform($res){
        return [
            'id'       =>  $res->id,
            'price'       =>  $res->price,
            'status'   =>  $res->status,
            'trade_no'=>$res->trade_no,
            'created_at'   =>  date("Y-m-d H:i:s",strtotime($res->created_at))
        ];
    }
}