11 * to license@zend.com so we can send you a copy immediately. |
11 * to license@zend.com so we can send you a copy immediately. |
12 * |
12 * |
13 * @category Zend |
13 * @category Zend |
14 * @package Zend_Cloud |
14 * @package Zend_Cloud |
15 * @subpackage QueueService |
15 * @subpackage QueueService |
16 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
16 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
17 * @license http://framework.zend.com/license/new-bsd New BSD License |
17 * @license http://framework.zend.com/license/new-bsd New BSD License |
18 */ |
18 */ |
19 |
19 |
20 /** |
20 /** |
21 * Generic message class |
21 * Generic message class |
22 * |
22 * |
23 * @category Zend |
23 * @category Zend |
24 * @package Zend_Cloud |
24 * @package Zend_Cloud |
25 * @subpackage QueueService |
25 * @subpackage QueueService |
26 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
26 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
27 * @license http://framework.zend.com/license/new-bsd New BSD License |
27 * @license http://framework.zend.com/license/new-bsd New BSD License |
28 */ |
28 */ |
29 class Zend_Cloud_QueueService_Message |
29 class Zend_Cloud_QueueService_Message |
30 { |
30 { |
31 protected $_body; |
31 protected $_body; |
32 protected $_clientMessage; |
32 protected $_clientMessage; |
33 |
33 |
34 /** |
34 /** |
35 * @param string $body Message text |
35 * @param string $body Message text |
36 * @param $message Original message |
36 * @param string $message Original message |
37 */ |
37 */ |
38 function __construct($body, $message) |
38 function __construct($body, $message) |
39 { |
39 { |
40 $this->_body = $body; |
40 $this->_body = $body; |
41 $this->_clientMessage = $message; |
41 $this->_clientMessage = $message; |
42 } |
42 } |
43 |
43 |
44 /** |
44 /** |
45 * Get the message body |
45 * Get the message body |
46 * @return string |
46 * @return string |
47 */ |
47 */ |
48 public function getBody() |
48 public function getBody() |
49 { |
49 { |
50 return $this->_body; |
50 return $this->_body; |
51 } |
51 } |
52 |
52 |
53 /** |
53 /** |
54 * Get the original adapter-specific message |
54 * Get the original adapter-specific message |
55 */ |
55 */ |
56 public function getMessage() |
56 public function getMessage() |
57 { |
57 { |