<?php

namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

class HelpMenuAnswerOptionsResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    public function toArray($request)
    {
        return [
            'id' => $this->id,
            'display_text' => $this->display_text,
            'value' => $this->value,
            'order' => $this->order,
            'question_number' => $this->question_number,
            'next_question_number' => $this->next_question_number,
        ];
    }
}
