<?php namespace Eae\Transformation\Transformer;

use League\Fractal;
use Lang;
use Country;

class CountryTransformer extends Fractal\TransformerAbstract
{
    public function __construct()
    {
    }

    public function transform(Country $country)
    {
        $out = [
            'id'          => (int)$country->id,
            'title'       => $country->title
        ];

        return $out;
    }
}
