1: <?php
2:
3: /**
4: * Avisota newsletter and mailing system
5: *
6: * PHP Version 5.3
7: *
8: * @copyright bit3 UG 2013
9: * @author Tristan Lins <tristan.lins@bit3.de>
10: * @package avisota-core
11: * @license LGPL-3.0+
12: * @link http://avisota.org
13: */
14:
15: namespace Avisota\Renderer;
16:
17: use Avisota\Message\MessageInterface;
18:
19: /**
20: * The basic message interface.
21: *
22: * @package avisota-core
23: */
24: interface MessageRendererInterface
25: {
26: /**
27: * Render a message and create a Swift_Message.
28: *
29: * @return \Swift_Message
30: */
31: public function renderMessage(MessageInterface $message);
32:
33: /**
34: * Check if this renderer can render the message.
35: *
36: * @param MessageInterface $message
37: *
38: * @return bool
39: */
40: public function canRender(MessageInterface $message);
41: }