web/lib/Zend/Cloud/QueueService/Message.php
changeset 64 162c1de6545a
parent 19 1c2f13fd785c
child 68 ecaf28ffe26e
equal deleted inserted replaced
63:5b37998e522e 64:162c1de6545a
       
     1 <?php
       
     2 /**
       
     3  * LICENSE
       
     4  *
       
     5  * This source file is subject to the new BSD license that is bundled
       
     6  * with this package in the file LICENSE.txt.
       
     7  * It is also available through the world-wide-web at this URL:
       
     8  * http://framework.zend.com/license/new-bsd
       
     9  * If you did not receive a copy of the license and are unable to
       
    10  * obtain it through the world-wide-web, please send an email
       
    11  * to license@zend.com so we can send you a copy immediately.
       
    12  *
       
    13  * @category   Zend
       
    14  * @package    Zend_Cloud
       
    15  * @subpackage QueueService
       
    16  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
       
    17  * @license    http://framework.zend.com/license/new-bsd     New BSD License
       
    18  */
       
    19 
       
    20 /**
       
    21  * Generic message class
       
    22  *
       
    23  * @category   Zend
       
    24  * @package    Zend_Cloud
       
    25  * @subpackage QueueService
       
    26  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
       
    27  * @license    http://framework.zend.com/license/new-bsd     New BSD License
       
    28  */
       
    29 class Zend_Cloud_QueueService_Message
       
    30 {
       
    31     protected $_body;
       
    32     protected $_clientMessage;
       
    33     
       
    34     /**
       
    35      * @param string $body Message text
       
    36      * @param $message Original message
       
    37      */
       
    38     function __construct($body, $message)
       
    39     {
       
    40         $this->_body = $body;  
       
    41         $this->_clientMessage = $message;      
       
    42     }
       
    43 
       
    44     /**
       
    45      * Get the message body
       
    46      * @return string
       
    47      */
       
    48     public function getBody()
       
    49     {
       
    50         return $this->_body;
       
    51     }
       
    52     
       
    53     /**
       
    54      * Get the original adapter-specific message
       
    55      */
       
    56     public function getMessage()
       
    57     {
       
    58         return $this->_clientMessage;
       
    59     }
       
    60 }