<?php

namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

/**
 * @property mixed disclaimer_title
 * @property mixed disclaimer_description
 */
class DisclaimerResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    public function toArray($request)
    {
        return [
            'title' => $this->disclaimer_title,
            'description' => stripText($this->disclaimer_description),
        ];
    }
}
