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

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

class PromotionPagesTransformer
{
    /**推广页面链接
     * Class PromotionPagesTransformer
     * @package App\Modules\Promotion\Transformers
     */

    public function transform($promotionPagesItem)
    {
        return [
            'id' => $promotionPagesItem->id,
            'title' => $promotionPagesItem->title,
            'description' => $promotionPagesItem->description,
            'link' => $promotionPagesItem->link
        ];
    }

}