Файл: sngine-v2.8/Script/includes/libs/Twilio/Rest/Api/V2010/Account/Queue/MemberOptions.php
Строк: 58
<?php
/**
* This code was generated by
* / _ _ _| _ _
* | (_)/(_)(_|/| |(/_ v1.0.0
* / /
*/
namespace TwilioRestApiV2010AccountQueue;
use TwilioOptions;
use TwilioValues;
abstract class MemberOptions {
/**
* @param string $method How to pass the update request data
* @return UpdateMemberOptions Options builder
*/
public static function update(string $method = Values::NONE): UpdateMemberOptions {
return new UpdateMemberOptions($method);
}
}
class UpdateMemberOptions extends Options {
/**
* @param string $method How to pass the update request data
*/
public function __construct(string $method = Values::NONE) {
$this->options['method'] = $method;
}
/**
* How to pass the update request data. Can be `GET` or `POST` and the default is `POST`. `POST` sends the data as encoded form data and `GET` sends the data as query parameters.
*
* @param string $method How to pass the update request data
* @return $this Fluent Builder
*/
public function setMethod(string $method): self {
$this->options['method'] = $method;
return $this;
}
/**
* Provide a friendly representation
*
* @return string Machine friendly representation
*/
public function __toString(): string {
$options = http_build_query(Values::of($this->options), '', ' ');
return '[Twilio.Api.V2010.UpdateMemberOptions ' . $options . ']';
}
}