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\Templating;
16:
17: use Avisota\Recipient\RecipientInterface;
18:
19: /**
20: * A template to generate a message from.
21: *
22: * @package avisota-core
23: */
24: interface MessageTemplateInterface
25: {
26: /**
27: * Render a message for the given recipient.
28: *
29: * @param RecipientInterface $recipientEmail The main recipient.
30: * @param array $newsletterData Additional newsletter data.
31: *
32: * @return \Avisota\Message\MessageInterface
33: */
34: public function render(RecipientInterface $recipient = null, array $newsletterData = array());
35: }
36: