PageRenderTime 29ms CodeModel.GetById 15ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/zf/library/Zend/Service/DeveloperGarden/Request/VoiceButler/CallStatus.php

http://github.com/eryx/php-framework-benchmark
PHP | 100 lines | 31 code | 7 blank | 62 comment | 0 complexity | 7762c80618e7836b687a28dc0fcb2a32 MD5 | raw file
Possible License(s): MIT, BSD-3-Clause, Apache-2.0, LGPL-2.1, LGPL-3.0, BSD-2-Clause
  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_Service
 17 * @subpackage DeveloperGarden
 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: CallStatus.php 23775 2011-03-01 17:25:24Z ralph $
 21 */
 22
 23/**
 24 * @see Zend_Service_DeveloperGarden_VoiceButler_VoiceButlerAbstract
 25 */
 26require_once 'Zend/Service/DeveloperGarden/Request/VoiceButler/VoiceButlerAbstract.php';
 27
 28/**
 29 * @category   Zend
 30 * @package    Zend_Service
 31 * @subpackage DeveloperGarden
 32 * @copyright  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
 33 * @author     Marco Kaiser
 34 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 35 */
 36class Zend_Service_DeveloperGarden_Request_VoiceButler_CallStatus
 37    extends Zend_Service_DeveloperGarden_Request_VoiceButler_VoiceButlerAbstract
 38{
 39    /**
 40     * extend the keep alive for this call
 41     *
 42     * @var integer
 43     */
 44    public $keepAlive = null;
 45
 46    /**
 47     * constructor give them the environment and the sessionId
 48     *
 49     * @param integer $environment
 50     * @param string $sessionId
 51     * @param integer $keepAlive
 52     * @return Zend_Service_DeveloperGarden_Request_RequestAbstract
 53     */
 54    public function __construct($environment, $sessionId, $keepAlive = null)
 55    {
 56        parent::__construct($environment);
 57        $this->setSessionId($sessionId)
 58             ->setKeepAlive($keepAlive);
 59    }
 60
 61    /**
 62     * @return string
 63     */
 64    public function getSessionId()
 65    {
 66        return $this->sessionId;
 67    }
 68
 69    /**
 70     * sets new sessionId
 71     *
 72     * @param string $sessionId
 73     * @return Zend_Service_DeveloperGarden_Request_VoiceButler_CallStatus
 74     */
 75    public function setSessionId($sessionId)
 76    {
 77        $this->sessionId = $sessionId;
 78        return $this;
 79    }
 80
 81    /**
 82     * @return integer
 83     */
 84    public function getKeepAlive()
 85    {
 86        return $this->keepAlive;
 87    }
 88
 89    /**
 90     * sets new keepAlive flag
 91     *
 92     * @param integer $keepAlive
 93     * @return Zend_Service_DeveloperGarden_Request_VoiceButler_CallStatus
 94     */
 95    public function setKeepAlive($keepAlive)
 96    {
 97        $this->keepAlive = $keepAlive;
 98        return $this;
 99    }
100}