comparison vendor/zendframework/zend-stdlib/src/MessageInterface.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
4 *
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
8 */
9
10 namespace Zend\Stdlib;
11
12 interface MessageInterface
13 {
14 /**
15 * Set metadata
16 *
17 * @param string|int|array|\Traversable $spec
18 * @param mixed $value
19 */
20 public function setMetadata($spec, $value = null);
21
22 /**
23 * Get metadata
24 *
25 * @param null|string|int $key
26 * @return mixed
27 */
28 public function getMetadata($key = null);
29
30 /**
31 * Set content
32 *
33 * @param mixed $content
34 * @return mixed
35 */
36 public function setContent($content);
37
38 /**
39 * Get content
40 *
41 * @return mixed
42 */
43 public function getContent();
44 }