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\Event;
16:
17: use Avisota\Message\MessageInterface;
18: use Avisota\Queue\EventEmittingQueueInterface;
19: use Avisota\Transport\TransportStatus;
20: use Symfony\Component\EventDispatcher\Event;
21:
22: /**
23: * Event triggered after an
24: * {@link http://avisota.github.io/core/class-Avisota.Queue.EventEmittingQueueInterface.html
25: * event emitting queue}
26: * send a message.
27: *
28: * @package avisota-core
29: */
30: class PostTransportMessageEvent extends AbstractTransportMessageEvent
31: {
32: /**
33: * @var TransportStatus
34: */
35: protected $status;
36:
37: public function __construct(
38: MessageInterface $message,
39: EventEmittingQueueInterface $queue,
40: TransportStatus $status
41: ) {
42: parent::__construct($message, $queue);
43: $this->status = $status;
44: }
45:
46: /**
47: * @return \Avisota\Transport\TransportStatus
48: */
49: public function getStatus()
50: {
51: return $this->status;
52: }
53: }