XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
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 
11 //@require 'Swift/Events/EventObject.php';
12 
20 {
21 
23  const RESULT_PENDING = 0x0001;
24 
26  const RESULT_SUCCESS = 0x0010;
27 
29  const RESULT_TENTATIVE = 0x0100;
30 
32  const RESULT_FAILED = 0x1000;
33 
38  private $_message;
39 
44  private $_transport;
45 
50  private $failedRecipients = array();
51 
56  private $result;
57 
63  public function __construct(Swift_Transport $source,
64  Swift_Mime_Message $message)
65  {
66  parent::__construct($source);
67  $this->_message = $message;
68  $this->_result = self::RESULT_PENDING;
69  }
70 
75  public function getTransport()
76  {
77  return $this->getSource();
78  }
79 
84  public function getMessage()
85  {
86  return $this->_message;
87  }
88 
93  public function setFailedRecipients($recipients)
94  {
95  $this->_failedRecipients = $recipients;
96  }
97 
102  public function getFailedRecipients()
103  {
104  return $this->_failedRecipients;
105  }
106 
111  public function setResult($result)
112  {
113  $this->_result = $result;
114  }
115 
122  public function getResult()
123  {
124  return $this->_result;
125  }
126 
127 }