Файл: sngine-v2.8/Script/includes/libs/Twilio/TwiML/Voice/Queue.php
Строк: 41
<?php
/**
* This code was generated by
* / _ _ _| _ _
* | (_)/(_)(_|/| |(/_ v1.0.0
* / /
*/
namespace TwilioTwiMLVoice;
use TwilioTwiMLTwiML;
class Queue extends TwiML {
/**
* Queue constructor.
*
* @param string $name Queue name
* @param array $attributes Optional attributes
*/
public function __construct($name, $attributes = []) {
parent::__construct('Queue', $name, $attributes);
}
/**
* Add Url attribute.
*
* @param string $url Action URL
*/
public function setUrl($url): self {
return $this->setAttribute('url', $url);
}
/**
* Add Method attribute.
*
* @param string $method Action URL method
*/
public function setMethod($method): self {
return $this->setAttribute('method', $method);
}
/**
* Add ReservationSid attribute.
*
* @param string $reservationSid TaskRouter Reservation SID
*/
public function setReservationSid($reservationSid): self {
return $this->setAttribute('reservationSid', $reservationSid);
}
/**
* Add PostWorkActivitySid attribute.
*
* @param string $postWorkActivitySid TaskRouter Activity SID
*/
public function setPostWorkActivitySid($postWorkActivitySid): self {
return $this->setAttribute('postWorkActivitySid', $postWorkActivitySid);
}
}