<?php namespace Eae\Transformation\Transformer;

use League\Fractal;
use Lang;
use LiveshowItem;

class LiveshowItemTransformer extends Fractal\TransformerAbstract
{


    public function __construct()
    {
    }

    public function transform(LiveshowItem $liveshowItem)
    {
        $out = [
            'title'    => $liveshowItem->title,
            'day'      => $liveshowItem->day,
            'year'     => $liveshowItem->year,
            'location' => $liveshowItem->location,
            'link'     => link_transform($liveshowItem->link, FALSE)
        ];

        return $out;
    }
}



