File indexing completed on 2024-05-26 06:02:48

0001 <?php
0002 /**
0003  * LICENSE
0004  *
0005  * This source file is subject to the new BSD license that is bundled
0006  * with this package in the file LICENSE.txt.
0007  * It is also available through the world-wide-web at this URL:
0008  * http://framework.zend.com/license/new-bsd
0009  * If you did not receive a copy of the license and are unable to
0010  * obtain it through the world-wide-web, please send an email
0011  * to license@zend.com so we can send you a copy immediately.
0012  *
0013  * @category   Zend
0014  * @package    Zend_Cloud
0015  * @subpackage QueueService
0016  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0017  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0018  */
0019 
0020 /**
0021  * Generic message class
0022  *
0023  * @category   Zend
0024  * @package    Zend_Cloud
0025  * @subpackage QueueService
0026  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0027  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0028  */
0029 class Zend_Cloud_QueueService_Message
0030 {
0031     protected $_body;
0032     protected $_clientMessage;
0033 
0034     /**
0035      * @param string $body Message text
0036      * @param string $message Original message
0037      */
0038     function __construct($body, $message)
0039     {
0040         $this->_body = $body;
0041         $this->_clientMessage = $message;
0042     }
0043 
0044     /**
0045      * Get the message body
0046      * @return string
0047      */
0048     public function getBody()
0049     {
0050         return $this->_body;
0051     }
0052 
0053     /**
0054      * Get the original adapter-specific message
0055      */
0056     public function getMessage()
0057     {
0058         return $this->_clientMessage;
0059     }
0060 }