Файл: sngine-v2.8/Script/includes/libs/Twilio/TwiML/VoiceResponse.php
Строк: 214
<?php
/**
* This code was generated by
* / _ _ _| _ _
* | (_)/(_)(_|/| |(/_ v1.0.0
* / /
*/
namespace TwilioTwiML;
class VoiceResponse extends TwiML {
/**
* VoiceResponse constructor.
*/
public function __construct() {
parent::__construct('Response', null);
}
/**
* Add Connect child.
*
* @param array $attributes Optional attributes
* @return VoiceConnect Child element.
*/
public function connect($attributes = []): VoiceConnect {
return $this->nest(new VoiceConnect($attributes));
}
/**
* Add Dial child.
*
* @param string $number Phone number to dial
* @param array $attributes Optional attributes
* @return VoiceDial Child element.
*/
public function dial($number = null, $attributes = []): VoiceDial {
return $this->nest(new VoiceDial($number, $attributes));
}
/**
* Add Echo child.
*
* @return VoiceEcho_ Child element.
*/
public function echo_(): VoiceEcho_ {
return $this->nest(new VoiceEcho_());
}
/**
* Add Enqueue child.
*
* @param string $name Friendly name
* @param array $attributes Optional attributes
* @return VoiceEnqueue Child element.
*/
public function enqueue($name = null, $attributes = []): VoiceEnqueue {
return $this->nest(new VoiceEnqueue($name, $attributes));
}
/**
* Add Gather child.
*
* @param array $attributes Optional attributes
* @return VoiceGather Child element.
*/
public function gather($attributes = []): VoiceGather {
return $this->nest(new VoiceGather($attributes));
}
/**
* Add Hangup child.
*
* @return VoiceHangup Child element.
*/
public function hangup(): VoiceHangup {
return $this->nest(new VoiceHangup());
}
/**
* Add Leave child.
*
* @return VoiceLeave Child element.
*/
public function leave(): VoiceLeave {
return $this->nest(new VoiceLeave());
}
/**
* Add Pause child.
*
* @param array $attributes Optional attributes
* @return VoicePause Child element.
*/
public function pause($attributes = []): VoicePause {
return $this->nest(new VoicePause($attributes));
}
/**
* Add Play child.
*
* @param string $url Media URL
* @param array $attributes Optional attributes
* @return VoicePlay Child element.
*/
public function play($url = null, $attributes = []): VoicePlay {
return $this->nest(new VoicePlay($url, $attributes));
}
/**
* Add Queue child.
*
* @param string $name Queue name
* @param array $attributes Optional attributes
* @return VoiceQueue Child element.
*/
public function queue($name, $attributes = []): VoiceQueue {
return $this->nest(new VoiceQueue($name, $attributes));
}
/**
* Add Record child.
*
* @param array $attributes Optional attributes
* @return VoiceRecord Child element.
*/
public function record($attributes = []): VoiceRecord {
return $this->nest(new VoiceRecord($attributes));
}
/**
* Add Redirect child.
*
* @param string $url Redirect URL
* @param array $attributes Optional attributes
* @return VoiceRedirect Child element.
*/
public function redirect($url, $attributes = []): VoiceRedirect {
return $this->nest(new VoiceRedirect($url, $attributes));
}
/**
* Add Reject child.
*
* @param array $attributes Optional attributes
* @return VoiceReject Child element.
*/
public function reject($attributes = []): VoiceReject {
return $this->nest(new VoiceReject($attributes));
}
/**
* Add Say child.
*
* @param string $message Message to say
* @param array $attributes Optional attributes
* @return VoiceSay Child element.
*/
public function say($message, $attributes = []): VoiceSay {
return $this->nest(new VoiceSay($message, $attributes));
}
/**
* Add Sms child.
*
* @param string $message Message body
* @param array $attributes Optional attributes
* @return VoiceSms Child element.
*/
public function sms($message, $attributes = []): VoiceSms {
return $this->nest(new VoiceSms($message, $attributes));
}
/**
* Add Pay child.
*
* @param array $attributes Optional attributes
* @return VoicePay Child element.
*/
public function pay($attributes = []): VoicePay {
return $this->nest(new VoicePay($attributes));
}
/**
* Add Prompt child.
*
* @param array $attributes Optional attributes
* @return VoicePrompt Child element.
*/
public function prompt($attributes = []): VoicePrompt {
return $this->nest(new VoicePrompt($attributes));
}
/**
* Add Start child.
*
* @param array $attributes Optional attributes
* @return VoiceStart Child element.
*/
public function start($attributes = []): VoiceStart {
return $this->nest(new VoiceStart($attributes));
}
/**
* Add Stop child.
*
* @return VoiceStop Child element.
*/
public function stop(): VoiceStop {
return $this->nest(new VoiceStop());
}
/**
* Add Refer child.
*
* @param array $attributes Optional attributes
* @return VoiceRefer Child element.
*/
public function refer($attributes = []): VoiceRefer {
return $this->nest(new VoiceRefer($attributes));
}
}