CallStatus2Response.php 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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-2015 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. * @see Zend_Service_DeveloperGarden_Response_VoiceButler_CallStatusResponse
  24. */
  25. require_once 'Zend/Service/DeveloperGarden/Response/VoiceButler/CallStatusResponse.php';
  26. /**
  27. * @category Zend
  28. * @package Zend_Service
  29. * @subpackage DeveloperGarden
  30. * @copyright Copyright (c) 2005-2015 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_Response_VoiceButler_CallStatus2Response
  35. extends Zend_Service_DeveloperGarden_Response_VoiceButler_CallStatusResponse
  36. {
  37. /**
  38. * returns the phone number of the second participant, who was called.
  39. *
  40. * @return string
  41. */
  42. public function getBe164()
  43. {
  44. return $this->getBNumber();
  45. }
  46. /**
  47. * returns the phone number of the second participant, who was called.
  48. *
  49. * @return string
  50. */
  51. public function getBNumber()
  52. {
  53. if (isset($this->return->be164)) {
  54. return $this->return->be164;
  55. }
  56. return null;
  57. }
  58. /**
  59. * Index of the phone number of the second participant (B), who was called. The value 0 means
  60. * the first B party phone number which was called, 1 means the second B party phone number
  61. * which was called etc.
  62. *
  63. * @return integer
  64. */
  65. public function getBNumberIndex()
  66. {
  67. return $this->getBIndex();
  68. }
  69. /**
  70. * Index of the phone number of the second participant (B), who was called. The value 0 means
  71. * the first B party phone number which was called, 1 means the second B party phone number
  72. * which was called etc.
  73. *
  74. * @return integer
  75. */
  76. public function getBIndex()
  77. {
  78. if (isset($this->return->bindex)) {
  79. return $this->return->bindex;
  80. }
  81. return null;
  82. }
  83. }