<?php

namespace GriffinForms\Admin\Choices;

class Message extends \GriffinForms\Admin\Choices\Format
{
    protected function setLang($type = null)
    {
        $this->lang = \GriffinForms\Admin\Language\Message::getInstance();
    }

    protected function getMergeItemTypes()
    {
        return [
            'field',
            'form',
            'submission',
        ];
    }

    protected function getMergeFormAttrs()
    {
        return [
            'id',
            'name',
            'heading',
            'description',
        ];
    }

    protected function getMergeFieldAttrs()
    {
        return [
            'id',
            'name',
            'label',
            'value',
            'description',
        ];
    }

    protected function getMergeSubmissionAttrs()
    {
        return [
            'id',
            'position',
            'time',
            'data',
            'attachments_count',
            'attachments_size',
            'payment_total',
            'payment_breakdown',
            'payment_status',
            'edit_url',
        ];
    }
}
