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\Queue;
16:
17: use Avisota\Message\MessageInterface;
18:
19: /**
20: * The execution decider decide if a message will be send now or delayed
21: * for next run.
22: *
23: * @package avisota-core
24: */
25: interface ExecutionDeciderInterface
26: {
27: /**
28: * Check if the message is accepted.
29: *
30: * @param MessageInterface $message
31: *
32: * @return bool
33: */
34: public function accept(MessageInterface $message);
35: }