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 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_Interface
0034 {
0035     /**
0036      * Connect to the Push Server
0037      *
0038      * @return Push
0039      */
0040     public function connect();
0041 
0042     /**
0043      * Send a Push Message
0044      *
0045      * @param  Zend_Mobile_Push_Message_Abstract $message
0046      * @return boolean
0047      */
0048     public function send(Zend_Mobile_Push_Message_Abstract $message);
0049 
0050     /**
0051      * Close the Connection to the Push Server
0052      *
0053      * @return void
0054      */
0055     public function close();
0056 
0057     /**
0058      * Set Options
0059      *
0060      * @param array $options
0061      * @return Zend_Mobile_Push_Abstract
0062      */
0063     public function setOptions(array $options);
0064 }