NullFormat.php
1 <?php
2 /**
3  * wCMF - wemove Content Management Framework
4  * Copyright (C) 2005-2015 wemove digital solutions GmbH
5  *
6  * Licensed under the terms of the MIT License.
7  *
8  * See the LICENSE file distributed with this work for
9  * additional information.
10  */
12 
14 use wcmf\lib\presentation\Response; // ambiguous
16 
17 /**
18  * NullFormat passes through the original request and response objects
19  * without modifying or transforming them.
20  *
21  * @author ingo herwig <ingo@wemove.com>
22  */
23 class NullFormat implements Format {
24 
25  /**
26  * @see Format::getMimeType()
27  */
28  public function getMimeType() {
29  return 'null';
30  }
31 
32  /**
33  * @see Format::deserialize()
34  */
35  public function deserialize(Request $request) {}
36 
37  /**
38  * @see Format::serialize()
39  */
40  public function serialize(Response $response) {}
41 }
42 ?>
Response holds the response values that are used as output from Controller instances.
Definition: Response.php:20
Request holds the request values that are used as input to Controller instances.
Definition: Request.php:20
NullFormat passes through the original request and response objects without modifying or transforming...
Definition: NullFormat.php:23
Format defines the interface for all format classes.
Definition: Format.php:24