File indexing completed on 2025-03-02 05:29:36
0001 <?php 0002 /** 0003 * Zend Framework 0004 * 0005 * LICENSE 0006 * 0007 * This source file is subject to the new BSD license that is bundled 0008 * with this package in the file LICENSE.txt. 0009 * It is also available through the world-wide-web at this URL: 0010 * http://framework.zend.com/license/new-bsd 0011 * If you did not receive a copy of the license and are unable to 0012 * obtain it through the world-wide-web, please send an email 0013 * to license@zend.com so we can send you a copy immediately. 0014 * 0015 * @category Zend 0016 * @package Zend_Mobile 0017 * @subpackage Zend_Mobile_Push 0018 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 0019 * @license http://framework.zend.com/license/new-bsd New BSD License 0020 * @version $Id$ 0021 */ 0022 0023 /** 0024 * Push Message Interface 0025 * 0026 * @category Zend 0027 * @package Zend_Mobile 0028 * @subpackage Zend_Mobile_Push 0029 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 0030 * @license http://framework.zend.com/license/new-bsd New BSD License 0031 * @version $Id$ 0032 */ 0033 interface Zend_Mobile_Push_Message_Interface 0034 { 0035 /** 0036 * Get Token 0037 * 0038 * @return string 0039 */ 0040 public function getToken(); 0041 0042 /** 0043 * Set Token 0044 * 0045 * @param string $token 0046 * @return Zend_Mobile_Push_Message_Abstract 0047 */ 0048 public function setToken($token); 0049 0050 /** 0051 * Get Id 0052 * 0053 * @return int|string|float|bool Scalar 0054 */ 0055 public function getId(); 0056 0057 /** 0058 * Set Id 0059 * 0060 * @param int|string|float|bool $id Scalar 0061 * @return Zend_Mobile_Push_Message_Abstract 0062 */ 0063 public function setId($id); 0064 0065 /** 0066 * Set Options 0067 * 0068 * @param array $options 0069 * @return Zend_Mobile_Push_Message_Abstract 0070 */ 0071 public function setOptions(array $options); 0072 0073 /** 0074 * Validate Message 0075 * 0076 * @return boolean 0077 */ 0078 public function validate(); 0079 }