_message = $message; $this->_result = self::RESULT_PENDING; } /** * Get the Transport used to send the Message. * * @return Swift_Transport */ public function getTransport() { return $this->getSource(); } /** * Get the Message being sent. * * @return Swift_Mime_Message */ public function getMessage() { return $this->_message; } /** * Set the array of addresses that failed in sending. * * @param array $recipients */ public function setFailedRecipients($recipients) { $this->_failedRecipients = $recipients; } /** * Get an recipient addresses which were not accepted for delivery. * * @return string[] */ public function getFailedRecipients() { return $this->_failedRecipients; } /** * Set the result of sending. * * @param int $result */ public function setResult($result) { $this->_result = $result; } /** * Get the result of this Event. * * The return value is a bitmask from * {@see RESULT_PENDING, RESULT_SUCCESS, RESULT_TENTATIVE, RESULT_FAILED} * * @return int */ public function getResult() { return $this->_result; } }