2015-09-18 22:55:40 -04:00
|
|
|
<?php
|
2015-11-16 11:40:01 -05:00
|
|
|
/**
|
|
|
|
* Ion
|
|
|
|
*
|
|
|
|
* Building blocks for web development
|
|
|
|
*
|
|
|
|
* @package Ion
|
|
|
|
* @author Timothy J. Warren
|
|
|
|
* @copyright Copyright (c) 2015
|
|
|
|
* @license MIT
|
|
|
|
*/
|
2015-09-18 22:55:40 -04:00
|
|
|
|
|
|
|
namespace Aviat\Ion\Transformer;
|
|
|
|
|
2015-10-09 22:29:59 -04:00
|
|
|
/**
|
|
|
|
* Interface for data transformation classes
|
|
|
|
*/
|
2015-09-18 22:55:40 -04:00
|
|
|
interface TransformerInterface {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Mutate the data structure
|
|
|
|
*
|
|
|
|
* @param array|object $item
|
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
public function transform($item);
|
|
|
|
}
|