<?php

abstract class Transformer
{

	/**
	 * Tranform a collection
	 *
	 * @param $items
	 * @return array
	 */
	public function transformCollection(array $items)
	{
		return array_map([$this, 'transform'], $items);
	}

	public abstract function transform($item);

}