You are here

interface MessageInterface in Zircon Profile 8

Same name in this branch
  1. 8 vendor/zendframework/zend-stdlib/src/MessageInterface.php \Zend\Stdlib\MessageInterface
  2. 8 vendor/psr/http-message/src/MessageInterface.php \Psr\Http\Message\MessageInterface
  3. 8 core/modules/contact/src/MessageInterface.php \Drupal\contact\MessageInterface
Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-stdlib/src/MessageInterface.php \Zend\Stdlib\MessageInterface

Hierarchy

Expanded class hierarchy of MessageInterface

All classes that implement MessageInterface

File

vendor/zendframework/zend-stdlib/src/MessageInterface.php, line 12

Namespace

Zend\Stdlib
View source
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();

}

Members

Namesort descending Modifiers Type Description Overrides
MessageInterface::getContent public function Get content 1
MessageInterface::getMetadata public function Get metadata 1
MessageInterface::setContent public function Set content 1
MessageInterface::setMetadata public function Set metadata 1