<?php

namespace Modules\Event\Transformers;

use Illuminate\Http\Resources\Json\JsonResource;
use Modules\Speaker\Transformers\SpeakerResource;

class RelatedEventResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request
     * @return array
     */
    public function toArray($request)
    {
        return [
            'hash' => $this->hash_id,
            'label' => $this->label,
            'title' => $this->title
        ];
    }
}
