Файл: sngine-v2.8/Script/includes/libs/Twilio/Rest/Wireless/V1/Sim/DataSessionOptions.php
Строк: 96
<?php
/**
 * This code was generated by
 *  / _    _  _|   _  _
 * | (_)/(_)(_|/| |(/_  v1.0.0
 * /       /
 */
namespace TwilioRestWirelessV1Sim;
use TwilioOptions;
use TwilioValues;
abstract class DataSessionOptions {
    /**
     * @param DateTime $end The date that the record ended, given as GMT in ISO
     *                       8601 format
     * @param DateTime $start The date that the Data Session started, given as GMT
     *                         in ISO 8601 format
     * @return ReadDataSessionOptions Options builder
     */
    public static function read(DateTime $end = Values::NONE, DateTime $start = Values::NONE): ReadDataSessionOptions {
        return new ReadDataSessionOptions($end, $start);
    }
}
class ReadDataSessionOptions extends Options {
    /**
     * @param DateTime $end The date that the record ended, given as GMT in ISO
     *                       8601 format
     * @param DateTime $start The date that the Data Session started, given as GMT
     *                         in ISO 8601 format
     */
    public function __construct(DateTime $end = Values::NONE, DateTime $start = Values::NONE) {
        $this->options['end'] = $end;
        $this->options['start'] = $start;
    }
    /**
     * The date that the record ended, given as GMT in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
     *
     * @param DateTime $end The date that the record ended, given as GMT in ISO
     *                       8601 format
     * @return $this Fluent Builder
     */
    public function setEnd(DateTime $end): self {
        $this->options['end'] = $end;
        return $this;
    }
    /**
     * The date that the Data Session started, given as GMT in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
     *
     * @param DateTime $start The date that the Data Session started, given as GMT
     *                         in ISO 8601 format
     * @return $this Fluent Builder
     */
    public function setStart(DateTime $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.Wireless.V1.ReadDataSessionOptions ' . $options . ']';
    }
}