<?php

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

/**
 * Class HeadlinelTransformer 标题
 * @package App\Modules\Promotion\Transformers
 */
class HeadlinelTransformer
{
    public function transform($healineItem)
    {
        return [
            'id' => $healineItem->id,
            'type' => $healineItem->type,
            'title' => $healineItem->title,
            'remark' => $healineItem->remark,
            'category' => $healineItem->category,
            'quality'=>$healineItem->quality,
            'serial_number' => $healineItem->serial_number,
            'updated_at' => date("Y-m-d H:i:s", strtotime($healineItem->updated_at)),
            'created_at' => date("Y-m-d H:i:s", strtotime($healineItem->created_at))
        ];
    }
}