1: <?php
2:
3: namespace Charcoal\Email;
4:
5: // Dependencies from `charcoal-queue`
6: use \Charcoal\Queue\AbstractQueueManager;
7:
8: // Local namespace dependencies
9: use \Charcoal\Email\EmailQueueItem;
10:
11: /**
12: * Queue manager for emails.
13: */
14: class EmailQueueManager extends AbstractQueueManager
15: {
16: /**
17: * Retrieve the queue item's model.
18: *
19: * @return EmailQueueItem
20: */
21: public function queueItemProto()
22: {
23: return $this->queueItemFactory()->create('charcoal/email/email-queue-item');
24: }
25: }
26: