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

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


class CommissionRateTransformer
{
    public function transform($commissionRate){
        return [
            'id' => ($commissionRate->id),
            'begin_amount'       =>  (float)($commissionRate->begin_amount),
            'end_amount'       =>  (float)($commissionRate->end_amount),
            'rate'   =>  (float)($commissionRate->rate)
        ];
    }
}