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

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


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