1: <?php
2:
3: /**
4: * Jyxo PHP Library
5: *
6: * LICENSE
7: *
8: * This source file is subject to the new BSD license that is bundled
9: * with this package in the file license.txt.
10: * It is also available through the world-wide-web at this URL:
11: * https://github.com/jyxo/php/blob/master/license.txt
12: */
13:
14: namespace Jyxo\Mail\Sender;
15:
16: /**
17: * Sending result.
18: *
19: * @category Jyxo
20: * @package Jyxo\Mail
21: * @subpackage Sender
22: * @copyright Copyright (c) 2005-2011 Jyxo, s.r.o.
23: * @license https://github.com/jyxo/php/blob/master/license.txt
24: * @author Jaroslav HanslĂk
25: */
26: class Result extends \Jyxo\Spl\Object
27: {
28: /**
29: * Email Id.
30: *
31: * @var string
32: */
33: private $messageId = '';
34:
35: /**
36: * Email source.
37: *
38: * @var string
39: */
40: private $source = '';
41:
42: /**
43: * Sending time.
44: *
45: * @var \Jyxo\Time\Time
46: */
47: private $datetime = null;
48:
49: /**
50: * Returns email Id.
51: *
52: * @return string
53: */
54: public function getMessageId()
55: {
56: return $this->messageId;
57: }
58:
59: /**
60: * Sets email Id.
61: *
62: * @param string $messageId Email Id
63: * @return \Jyxo\Mail\Sender\Result
64: */
65: public function setMessageId($messageId)
66: {
67: $this->messageId = (string) $messageId;
68:
69: return $this;
70: }
71:
72: /**
73: * Returns email source.
74: *
75: * @return string
76: */
77: public function getSource()
78: {
79: return $this->source;
80: }
81:
82: /**
83: * Sets email source.
84: *
85: * @param string $source
86: * @return \Jyxo\Mail\Sender\Result
87: */
88: public function setSource($source)
89: {
90: $this->source = (string) $source;
91:
92: return $this;
93: }
94:
95: /**
96: * Returns sending time.
97: *
98: * @return \Jyxo\Time\Time
99: */
100: public function getDatetime()
101: {
102: return $this->datetime;
103: }
104:
105: /**
106: * Sets sending time.
107: *
108: * @param \Jyxo\Time\Time $datetime Sending time
109: * @return \Jyxo\Mail\Sender\Result
110: */
111: public function setDatetime(\Jyxo\Time\Time $datetime)
112: {
113: $this->datetime = $datetime;
114:
115: return $this;
116: }
117: }
118: