<?php

namespace App\Http\Controllers\Wechat\OfficialAccount\Transformers;

class OfficialInteractiveEventTextTransformer
{
    public function transform($officialInteractiveTextEvent){
        return [
            'title'       =>  $officialInteractiveTextEvent->text->book_name,
            'description'       =>  $officialInteractiveTextEvent->text->intro,
            'url'       =>  $officialInteractiveTextEvent->text->url,
            'image'       =>  $officialInteractiveTextEvent->text->cover,
        ];
    }
}