<?php

class TypeTransformer extends Transformer
{

	/**
	 * Tranform an area
	 *
	 * @param $area
	 * @return array
	 */
	public function transform($type)
	{
		return [
			'id' => (int)$type['id'],
			'name' => $type['name']
		];
	}

}