示例#1
0
 /**
  * Encode this object to JSON
  */
 public function jsonSerialize()
 {
     $json = array();
     $json['location_handle'] = $this->locationHandle;
     $json['quantity'] = $this->quantity;
     $json['attributes'] = $this->attributes;
     $json['did_type_handle'] = $this->didTypeHandle;
     $json['trunk_id'] = $this->trunkId;
     $json['_caller_location'] = $this->callerLocation;
     $json = array_merge($json, parent::jsonSerialize());
     return $json;
 }
示例#2
0
 /**
  * Encode this object to JSON
  */
 public function jsonSerialize()
 {
     $json = array();
     $json['phone_number'] = $this->phoneNumber;
     $json['trunk_id'] = $this->trunkId;
     $json['did_type_handle'] = $this->didTypeHandle;
     $json['_caller_location'] = $this->callerLocation;
     $json = array_merge($json, parent::jsonSerialize());
     return $json;
 }
示例#3
0
 /**
  * Encode this object to JSON
  */
 public function jsonSerialize()
 {
     $json = array();
     $json['channels'] = $this->channels;
     $json['trunk_handle'] = $this->trunkHandle;
     $json['sip_uri'] = $this->sipUri;
     $json['attributes'] = $this->attributes;
     $json['_routing'] = $this->routing;
     $json = array_merge($json, parent::jsonSerialize());
     return $json;
 }