-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFormatterInterface.php
More file actions
35 lines (34 loc) · 905 Bytes
/
FormatterInterface.php
File metadata and controls
35 lines (34 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/**
* File defining Backend\Interfaces\FormatterInterface.
*
* PHP Version 5.3
*
* @category Backend
* @package Interfaces
* @author J Jurgens du Toit <jrgns@backend-php.net>
* @copyright 2011 - 2012 Jade IT (cc)
* @license http://www.opensource.org/licenses/mit-license.php MIT License
* @link http://backend-php.net
*/
namespace Backend\Interfaces;
/**
* Transform results into the specified format.
*
* @category Backend
* @package Interfaces
* @author J Jurgens du Toit <jrgns@backend-php.net>
* @license http://www.opensource.org/licenses/mit-license.php MIT License
* @link http://backend-php.net
*/
interface FormatterInterface
{
/**
* Output the response to the client.
*
* @param mixed $result The result to transform.
*
* @return \Backend\Interfaces\ResponseInterface;
*/
public function transform($result);
}