web/lib/Zend/Service/DeveloperGarden/Response/VoiceButler/CallStatus2Response.php
changeset 64 162c1de6545a
parent 19 1c2f13fd785c
child 68 ecaf28ffe26e
equal deleted inserted replaced
63:5b37998e522e 64:162c1de6545a
       
     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-2010 Zend Technologies USA Inc. (http://www.zend.com)
       
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
       
    20  * @version    $Id: CallStatus2Response.php 20166 2010-01-09 19:00:17Z bkarwin $
       
    21  */
       
    22 
       
    23 /**
       
    24  * @see Zend_Service_DeveloperGarden_Response_VoiceButler_CallStatusResponse
       
    25  */
       
    26 require_once 'Zend/Service/DeveloperGarden/Response/VoiceButler/CallStatusResponse.php';
       
    27 
       
    28 /**
       
    29  * @category   Zend
       
    30  * @package    Zend_Service
       
    31  * @subpackage DeveloperGarden
       
    32  * @copyright  Copyright (c) 2005-2010 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  */
       
    36 class Zend_Service_DeveloperGarden_Response_VoiceButler_CallStatus2Response
       
    37     extends Zend_Service_DeveloperGarden_Response_VoiceButler_CallStatusResponse
       
    38 {
       
    39     /**
       
    40      * returns the phone number of the second participant, who was called.
       
    41      *
       
    42      * @return string
       
    43      */
       
    44     public function getBe164()
       
    45     {
       
    46         return $this->getBNumber();
       
    47     }
       
    48 
       
    49     /**
       
    50      * returns the phone number of the second participant, who was called.
       
    51      *
       
    52      * @return string
       
    53      */
       
    54     public function getBNumber()
       
    55     {
       
    56         if (isset($this->return->be164)) {
       
    57             return $this->return->be164;
       
    58         }
       
    59         return null;
       
    60     }
       
    61 
       
    62     /**
       
    63      * Index of the phone number of the second participant (B), who was called. The value 0 means
       
    64      * the first B party phone number which was called, 1 means the second B party phone number
       
    65      * which was called etc.
       
    66      *
       
    67      * @return integer
       
    68      */
       
    69     public function getBNumberIndex()
       
    70     {
       
    71         return $this->getBIndex();
       
    72     }
       
    73 
       
    74     /**
       
    75      * Index of the phone number of the second participant (B), who was called. The value 0 means
       
    76      * the first B party phone number which was called, 1 means the second B party phone number
       
    77      * which was called etc.
       
    78      *
       
    79      * @return integer
       
    80      */
       
    81     public function getBIndex()
       
    82     {
       
    83         if (isset($this->return->bindex)) {
       
    84             return $this->return->bindex;
       
    85         }
       
    86         return null;
       
    87     }
       
    88 }