<?php

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

class BadBookInfoTransformer
{
    public function transform($item)
    {
        return [
            'id' => $item->id,
            'info' => $item->badInfo,
            'updated_at' => date("Y-m-d H:i:s", strtotime($item->updated_at)),
            'created_at' => date("Y-m-d H:i:s", strtotime($item->created_at)),
        ];
    }
}