Файл: sngine-v2.8/Script/includes/libs/Twilio/TwiML/MessagingResponse.php
Строк: 40
<?php
/**
* This code was generated by
* / _ _ _| _ _
* | (_)/(_)(_|/| |(/_ v1.0.0
* / /
*/
namespace TwilioTwiML;
class MessagingResponse extends TwiML {
/**
* MessagingResponse constructor.
*/
public function __construct() {
parent::__construct('Response', null);
}
/**
* Add Message child.
*
* @param string $body Message Body
* @param array $attributes Optional attributes
* @return MessagingMessage Child element.
*/
public function message($body, $attributes = []): MessagingMessage {
return $this->nest(new MessagingMessage($body, $attributes));
}
/**
* Add Redirect child.
*
* @param string $url Redirect URL
* @param array $attributes Optional attributes
* @return MessagingRedirect Child element.
*/
public function redirect($url, $attributes = []): MessagingRedirect {
return $this->nest(new MessagingRedirect($url, $attributes));
}
}