web/lib/Zend/Mobile/Push/Message/Abstract.php
changeset 1230 68c69c656a2c
parent 808 6b6c2214f778
equal deleted inserted replaced
1229:5a6b6e770365 1230:68c69c656a2c
    13  * to license@zend.com so we can send you a copy immediately.
    13  * to license@zend.com so we can send you a copy immediately.
    14  *
    14  *
    15  * @category   Zend
    15  * @category   Zend
    16  * @package    Zend_Mobile
    16  * @package    Zend_Mobile
    17  * @subpackage Zend_Mobile_Push
    17  * @subpackage Zend_Mobile_Push
    18  * @copyright  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
    18  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    20  * @version    $Id$
    20  * @version    $Id$
    21  */
    21  */
    22 
    22 
    23 /** Zend_Mobile_Push_Message_Interface **/
    23 /** Zend_Mobile_Push_Message_Interface **/
    30  * Message Abstract
    30  * Message Abstract
    31  *
    31  *
    32  * @category   Zend
    32  * @category   Zend
    33  * @package    Zend_Mobile
    33  * @package    Zend_Mobile
    34  * @subpackage Zend_Mobile_Push_Message
    34  * @subpackage Zend_Mobile_Push_Message
    35  * @copyright  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
    35  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
    36  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    36  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    37  * @version    $Id$
    37  * @version    $Id$
    38  */
    38  */
    39 abstract class Zend_Mobile_Push_Message_Abstract implements Zend_Mobile_Push_Message_Interface
    39 abstract class Zend_Mobile_Push_Message_Abstract implements Zend_Mobile_Push_Message_Interface
    40 {
    40 {
    46     protected $_token;
    46     protected $_token;
    47 
    47 
    48     /**
    48     /**
    49      * Id
    49      * Id
    50      *
    50      *
    51      * @var scalar
    51      * @var int|string|float|bool Scalar
    52      */
    52      */
    53     protected $_id;
    53     protected $_id;
    54 
    54 
    55     /**
    55     /**
    56      * Get Token
    56      * Get Token
    64 
    64 
    65     /**
    65     /**
    66      * Set Token
    66      * Set Token
    67      *
    67      *
    68      * @param  string $token
    68      * @param  string $token
       
    69      * @throws Zend_Mobile_Push_Message_Exception
    69      * @return Zend_Mobile_Push_Message_Abstract
    70      * @return Zend_Mobile_Push_Message_Abstract
    70      */
    71      */
    71     public function setToken($token)
    72     public function setToken($token)
    72     {
    73     {
    73         if (!is_string($token)) {
    74         if (!is_string($token)) {
    78     }
    79     }
    79 
    80 
    80     /**
    81     /**
    81      * Get Message ID
    82      * Get Message ID
    82      * 
    83      * 
    83      * @return scalar
    84      * @return int|string|float|bool Scalar
    84      */
    85      */
    85     public function getId()
    86     public function getId()
    86     {
    87     {
    87         return $this->_id;
    88         return $this->_id;
    88     }
    89     }
    89 
    90 
    90     /**
    91     /**
    91      * Set Message ID
    92      * Set Message ID
    92      *
    93      *
    93      * @param scalar $id
    94      * @param  int|string|float|bool $id Scalar
    94      * @return Zend_Mobile_Push_Message_Abstract
    95      * @return Zend_Mobile_Push_Message_Abstract
    95      * @throws Exception
    96      * @throws Exception
    96      */
    97      */
    97     public function setId($id)
    98     public function setId($id)
    98     {
    99     {