<?php

namespace Emixion\Calendar\Repositories\Presenter;

use League\Fractal\TransformerAbstract;
use Hashids;

class CalendarsListTransformer extends TransformerAbstract
{
    public function transform(\Emixion\Calendar\Models\Calendars $calendars)
    {
        return [
            'id'                => $calendars->getRouteKey(),
            'naam'              => $calendars->naam,
            'slug'              => $calendars->slug,
        ];
    }
}