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\RecipientSource;
16:
17: use Avisota\Recipient\RecipientInterface;
18:
19: /**
20: * A recipient source provide a list of recipients.
21: *
22: * @package avisota-core
23: */
24: interface RecipientSourceInterface
25: {
26: /**
27: * Count the recipients.
28: *
29: * @return int
30: */
31: public function countRecipients();
32:
33: /**
34: * Get all recipients.
35: *
36: * @param int $limit Limit result to given count.
37: * @param int $offset Skip certain count of recipients.
38: *
39: * @return RecipientInterface[]
40: */
41: public function getRecipients($limit = null, $offset = null);
42: }
43: