<?php

namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

class Elemento extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    public function toArray($request)
    {
        return [
            'codEL'     => $this->getCodEL(),
            'nameEL'    => $this->getNameEL(),
            'idEL'      => strval($this->getIdEL()),
            'typeEL'    => $this->getTypeEL(),
            'classEL'   => $this->getClassEL(),
            'iconEL'    => $this->getIconEL(),
        ];
    }
}
