<?php

namespace App\Transformers;

use League\Fractal\TransformerAbstract;
use App\Models\Withdraw;

/**
 * Class WithdrawTransformer.
 *
 * @package namespace App\Transformers;
 */
class WithdrawTransformer extends TransformerAbstract
{
    /**
     * Transform the Withdraw entity.
     *
     * @param \App\Models\Withdraw $model
     *
     * @return array
     */
    public function transform(Withdraw $model)
    {
        return [
            'id'         => (int) $model->id,

            /* place your other model properties here */

            'created_at' => $model->created_at,
            'updated_at' => $model->updated_at
        ];
    }
}