<?php

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

class CustomTemplateSendStatTransformer
{
    public function transform($CustomTemplateSendStat){
        return [
            'id'       =>  isset($CustomTemplateSendStat->id) ? $CustomTemplateSendStat->id : "",
            'created_date'       =>  isset($CustomTemplateSendStat->created_date) ? $CustomTemplateSendStat->created_date : "",
            'template_name'       =>  isset($CustomTemplateSendStat->template_name) ? $CustomTemplateSendStat->template_name : "",
            'task_name'       =>  isset($CustomTemplateSendStat->task_name) ? $CustomTemplateSendStat->task_name : "",
            'site_id'       =>  isset($CustomTemplateSendStat->site_id) ? $CustomTemplateSendStat->site_id : "",
            'official_account_name'       =>  isset($CustomTemplateSendStat->official_account_name) ? $CustomTemplateSendStat->official_account_name : "",
            'tag'       =>  isset($CustomTemplateSendStat->tag) ? $CustomTemplateSendStat->tag : "",
            'send_time'       =>  isset($CustomTemplateSendStat->send_time) ? $CustomTemplateSendStat->send_time : "",
            'suc_send_num'       =>  isset($CustomTemplateSendStat->suc_send_num) ? $CustomTemplateSendStat->suc_send_num : "",
            'uv'       =>  isset($CustomTemplateSendStat->uv) ? $CustomTemplateSendStat->uv : "",
            'total_order_num'       =>  isset($CustomTemplateSendStat->total_order_num) ? $CustomTemplateSendStat->total_order_num : "",
            'suc_order_num'       =>  isset($CustomTemplateSendStat->suc_order_num) ? $CustomTemplateSendStat->suc_order_num : "",
            'charge_amount'       =>  isset($CustomTemplateSendStat->charge_amount) ? $CustomTemplateSendStat->charge_amount : "",
            'not_first_charge_user_num'       =>  isset($CustomTemplateSendStat->not_first_charge_user_num) ? $CustomTemplateSendStat->not_first_charge_user_num : "",
        ];
    }
}