mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-05 17:14:20 +01:00
42 lines
665 B
PHP
42 lines
665 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Laminas\Stdlib;
|
|
|
|
use Traversable;
|
|
|
|
interface MessageInterface
|
|
{
|
|
/**
|
|
* Set metadata
|
|
*
|
|
* @param string|int|array|Traversable $spec
|
|
* @param mixed $value
|
|
*/
|
|
public function setMetadata($spec, $value = null);
|
|
|
|
/**
|
|
* Get metadata
|
|
*
|
|
* @param null|string|int $key
|
|
* @return mixed
|
|
*/
|
|
public function getMetadata($key = null);
|
|
|
|
/**
|
|
* Set content
|
|
*
|
|
* @param mixed $content
|
|
* @return mixed
|
|
*/
|
|
public function setContent($content);
|
|
|
|
/**
|
|
* Get content
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function getContent();
|
|
}
|