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\Transport;
16:
17: use Avisota\Message\MessageInterface;
18:
19: /**
20: * The transport interface.
21: *
22: * @package avisota-core
23: */
24: interface TransportInterface
25: {
26: /**
27: * Initialise transport.
28: *
29: * @return void
30: */
31: public function initialise();
32:
33: /**
34: * Transport a message.
35: *
36: * @param MessageInterface $message
37: * @return TransportStatus
38: */
39: public function send(MessageInterface $message);
40:
41: /**
42: * Flush transport.
43: *
44: * @return void
45: */
46: public function flush();
47: }
48: