Файл: sngine-v2.8/Script/includes/libs/Twilio/Rest/Api/V2010/Account/Message/FeedbackOptions.php
Строк: 62
<?php
/**
* This code was generated by
* / _ _ _| _ _
* | (_)/(_)(_|/| |(/_ v1.0.0
* / /
*/
namespace TwilioRestApiV2010AccountMessage;
use TwilioOptions;
use TwilioValues;
abstract class FeedbackOptions {
/**
* @param string $outcome Whether the feedback has arrived
* @return CreateFeedbackOptions Options builder
*/
public static function create(string $outcome = Values::NONE): CreateFeedbackOptions {
return new CreateFeedbackOptions($outcome);
}
}
class CreateFeedbackOptions extends Options {
/**
* @param string $outcome Whether the feedback has arrived
*/
public function __construct(string $outcome = Values::NONE) {
$this->options['outcome'] = $outcome;
}
/**
* Whether the feedback has arrived. Can be: `unconfirmed` or `confirmed`. If `provide_feedback`=`true` in [the initial HTTP POST](https://www.twilio.com/docs/sms/api/message-resource#create-a-message-resource), the initial value of this property is `unconfirmed`. After the message arrives, update the value to `confirmed`.
*
* @param string $outcome Whether the feedback has arrived
* @return $this Fluent Builder
*/
public function setOutcome(string $outcome): self {
$this->options['outcome'] = $outcome;
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.CreateFeedbackOptions ' . $options . ']';
}
}