/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

  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. * @see Zend_Service_DeveloperGarden_VoiceButler_VoiceButlerAbstract
  24. */
  25. require_once 'Zend/Service/DeveloperGarden/Request/VoiceButler/VoiceButlerAbstract.php';
  26. /**
  27. * @category Zend
  28. * @package Zend_Service
  29. * @subpackage DeveloperGarden
  30. * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
  31. * @author Marco Kaiser
  32. * @license http://framework.zend.com/license/new-bsd New BSD License
  33. */
  34. class Zend_Service_DeveloperGarden_Request_VoiceButler_CallStatus
  35. extends Zend_Service_DeveloperGarden_Request_VoiceButler_VoiceButlerAbstract
  36. {
  37. /**
  38. * extend the keep alive for this call
  39. *
  40. * @var integer
  41. */
  42. public $keepAlive = null;
  43. /**
  44. * constructor give them the environment and the sessionId
  45. *
  46. * @param integer $environment
  47. * @param string $sessionId
  48. * @param integer $keepAlive
  49. * @return Zend_Service_DeveloperGarden_Request_RequestAbstract
  50. */
  51. public function __construct($environment, $sessionId, $keepAlive = null)
  52. {
  53. parent::__construct($environment);
  54. $this->setSessionId($sessionId)
  55. ->setKeepAlive($keepAlive);
  56. }
  57. /**
  58. * @return string
  59. */
  60. public function getSessionId()
  61. {
  62. return $this->sessionId;
  63. }
  64. /**
  65. * sets new sessionId
  66. *
  67. * @param string $sessionId
  68. * @return Zend_Service_DeveloperGarden_Request_VoiceButler_CallStatus
  69. */
  70. public function setSessionId($sessionId)
  71. {
  72. $this->sessionId = $sessionId;
  73. return $this;
  74. }
  75. /**
  76. * @return integer
  77. */
  78. public function getKeepAlive()
  79. {
  80. return $this->keepAlive;
  81. }
  82. /**
  83. * sets new keepAlive flag
  84. *
  85. * @param integer $keepAlive
  86. * @return Zend_Service_DeveloperGarden_Request_VoiceButler_CallStatus
  87. */
  88. public function setKeepAlive($keepAlive)
  89. {
  90. $this->keepAlive = $keepAlive;
  91. return $this;
  92. }
  93. }