<?php
/**
 * Created by PhpStorm.
 * User: hp
 * Date: 2017/11/21
 * Time: 10:53
 */

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

/**
 * Class QrCodeTransformer  模板图
 * @package App\Modules\Promotion\Transformers
 */
class BgInagesTransformer
{
    public function transform($bgInageItem)
    {
        return [
            'id' => $bgInageItem->id,
            'sequence' => $bgInageItem->sequence,
            'link' => $bgInageItem->link,
            'created_at' => date("Y-m-d H:i:s",strtotime($bgInageItem->created_at)),
            'updated_at' => date("Y-m-d H:i:s",strtotime($bgInageItem->updated_at))
        ];
    }
}