TYPO3  7.6
SendEvent.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of SwiftMailer.
5  * (c) 2004-2009 Chris Corbyn
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10 
17 {
19  const RESULT_PENDING = 0x0001;
20 
22  const RESULT_SPOOLED = 0x0011;
23 
25  const RESULT_SUCCESS = 0x0010;
26 
28  const RESULT_TENTATIVE = 0x0100;
29 
31  const RESULT_FAILED = 0x1000;
32 
38  private $_message;
39 
45  private $_failedRecipients = array();
46 
52  private $_result;
53 
60  public function __construct(Swift_Transport $source, Swift_Mime_Message $message)
61  {
62  parent::__construct($source);
63  $this->_message = $message;
64  $this->_result = self::RESULT_PENDING;
65  }
66 
72  public function getTransport()
73  {
74  return $this->getSource();
75  }
76 
82  public function getMessage()
83  {
84  return $this->_message;
85  }
86 
92  public function setFailedRecipients($recipients)
93  {
94  $this->_failedRecipients = $recipients;
95  }
96 
102  public function getFailedRecipients()
103  {
105  }
106 
112  public function setResult($result)
113  {
114  $this->_result = $result;
115  }
116 
125  public function getResult()
126  {
127  return $this->_result;
128  }
129 }