<?php

namespace App\Transformers;

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

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

            /* place your other model properties here */

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