Файл: sngine-v2.8/Script/includes/libs/Twilio/Rest/Preview/Wireless/Sim/UsageOptions.php
Строк: 87
<?php
/**
* This code was generated by
* / _ _ _| _ _
* | (_)/(_)(_|/| |(/_ v1.0.0
* / /
*/
namespace TwilioRestPreviewWirelessSim;
use TwilioOptions;
use TwilioValues;
/**
* PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
*/
abstract class UsageOptions {
/**
* @param string $end The end
* @param string $start The start
* @return FetchUsageOptions Options builder
*/
public static function fetch(string $end = Values::NONE, string $start = Values::NONE): FetchUsageOptions {
return new FetchUsageOptions($end, $start);
}
}
class FetchUsageOptions extends Options {
/**
* @param string $end The end
* @param string $start The start
*/
public function __construct(string $end = Values::NONE, string $start = Values::NONE) {
$this->options['end'] = $end;
$this->options['start'] = $start;
}
/**
* The end
*
* @param string $end The end
* @return $this Fluent Builder
*/
public function setEnd(string $end): self {
$this->options['end'] = $end;
return $this;
}
/**
* The start
*
* @param string $start The start
* @return $this Fluent Builder
*/
public function setStart(string $start): self {
$this->options['start'] = $start;
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.Preview.Wireless.FetchUsageOptions ' . $options . ']';
}
}