web/lib/Zend/Mobile/Push/Message/Interface.php
changeset 808 6b6c2214f778
child 1230 68c69c656a2c
equal deleted inserted replaced
807:877f952ae2bd 808:6b6c2214f778
       
     1 <?php
       
     2 /**
       
     3  * Zend Framework
       
     4  *
       
     5  * LICENSE
       
     6  *
       
     7  * This source file is subject to the new BSD license that is bundled
       
     8  * with this package in the file LICENSE.txt.
       
     9  * It is also available through the world-wide-web at this URL:
       
    10  * http://framework.zend.com/license/new-bsd
       
    11  * If you did not receive a copy of the license and are unable to
       
    12  * obtain it through the world-wide-web, please send an email
       
    13  * to license@zend.com so we can send you a copy immediately.
       
    14  *
       
    15  * @category   Zend
       
    16  * @package    Zend_Mobile
       
    17  * @subpackage Zend_Mobile_Push
       
    18  * @copyright  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
       
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
       
    20  * @version    $Id$
       
    21  */
       
    22 
       
    23 /**
       
    24  * Push Message Interface
       
    25  *
       
    26  * @category   Zend
       
    27  * @package    Zend_Mobile
       
    28  * @subpackage Zend_Mobile_Push
       
    29  * @copyright  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
       
    30  * @license    http://framework.zend.com/license/new-bsd     New BSD License
       
    31  * @version    $Id$
       
    32  */
       
    33 interface Zend_Mobile_Push_Message_Interface
       
    34 {
       
    35     /**
       
    36      * Get Token
       
    37      *
       
    38      * @return string
       
    39      */
       
    40     public function getToken();
       
    41 
       
    42     /**
       
    43      * Set Token
       
    44      *
       
    45      * @param string $token
       
    46      * @return Zend_Mobile_Push_Message_Abstract
       
    47      */
       
    48     public function setToken($token);
       
    49 
       
    50     /**
       
    51      * Get Id
       
    52      *
       
    53      * @return scalar
       
    54      */
       
    55     public function getId();
       
    56 
       
    57     /**
       
    58      * Set Id
       
    59      *
       
    60      * @param scalar $id
       
    61      * @return Zend_Mobile_Push_Message_Abstract
       
    62      */
       
    63     public function setId($id);
       
    64 
       
    65     /**
       
    66      * Set Options
       
    67      *
       
    68      * @param array $options
       
    69      * @return Zend_Mobile_Push_Message_Abstract
       
    70      */
       
    71     public function setOptions(array $options);
       
    72 
       
    73     /**
       
    74      * Validate Message
       
    75      *
       
    76      * @return boolean
       
    77      */
       
    78     public function validate();
       
    79 }