<?php

class AreaTransformer extends Transformer
{

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

}