<?php
/**
 * Created by PhpStorm.
 * User: z-yang
 * Date: 2018/3/13
 * Time: 14:32
 */

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


class ChannelSubscribeTransformer
{
    public function transform($channel)
    {
        return [
            'id' => $channel->id,
            'force_subscribe_type' =>$channel->force_subscribe_type,
            'resource_url'=>$channel->resource_url
        ];
    }
}