PATH:
home
/
lab2454c
/
.trash
/
core
/
vendor
/
twilio
/
sdk
/
src
/
Twilio
/
Rest
/
Taskrouter
/
V1
/
Workspace
/
Worker
<?php /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ namespace Twilio\Rest\Taskrouter\V1\Workspace\Worker; use Twilio\Options; use Twilio\Values; abstract class WorkersCumulativeStatisticsOptions { /** * @param \DateTime $endDate Only calculate statistics from on or before this * date * @param int $minutes Only calculate statistics since this many minutes in the * past * @param \DateTime $startDate Only calculate statistics from on or after this * date * @param string $taskChannel Only calculate cumulative statistics on this * TaskChannel * @return FetchWorkersCumulativeStatisticsOptions Options builder */ public static function fetch(\DateTime $endDate = Values::NONE, int $minutes = Values::NONE, \DateTime $startDate = Values::NONE, string $taskChannel = Values::NONE): FetchWorkersCumulativeStatisticsOptions { return new FetchWorkersCumulativeStatisticsOptions($endDate, $minutes, $startDate, $taskChannel); } } class FetchWorkersCumulativeStatisticsOptions extends Options { /** * @param \DateTime $endDate Only calculate statistics from on or before this * date * @param int $minutes Only calculate statistics since this many minutes in the * past * @param \DateTime $startDate Only calculate statistics from on or after this * date * @param string $taskChannel Only calculate cumulative statistics on this * TaskChannel */ public function __construct(\DateTime $endDate = Values::NONE, int $minutes = Values::NONE, \DateTime $startDate = Values::NONE, string $taskChannel = Values::NONE) { $this->options['endDate'] = $endDate; $this->options['minutes'] = $minutes; $this->options['startDate'] = $startDate; $this->options['taskChannel'] = $taskChannel; } /** * Only calculate statistics from this date and time and earlier, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. * * @param \DateTime $endDate Only calculate statistics from on or before this * date * @return $this Fluent Builder */ public function setEndDate(\DateTime $endDate): self { $this->options['endDate'] = $endDate; return $this; } /** * Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. * * @param int $minutes Only calculate statistics since this many minutes in the * past * @return $this Fluent Builder */ public function setMinutes(int $minutes): self { $this->options['minutes'] = $minutes; return $this; } /** * Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. * * @param \DateTime $startDate Only calculate statistics from on or after this * date * @return $this Fluent Builder */ public function setStartDate(\DateTime $startDate): self { $this->options['startDate'] = $startDate; return $this; } /** * Only calculate cumulative statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. * * @param string $taskChannel Only calculate cumulative statistics on this * TaskChannel * @return $this Fluent Builder */ public function setTaskChannel(string $taskChannel): self { $this->options['taskChannel'] = $taskChannel; 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.Taskrouter.V1.FetchWorkersCumulativeStatisticsOptions ' . $options . ']'; } }
[-] WorkersCumulativeStatisticsPage.php
[edit]
[-] WorkersStatisticsList.php
[edit]
[-] WorkersCumulativeStatisticsOptions.php
[edit]
[-] WorkersRealTimeStatisticsPage.php
[edit]
[-] WorkersStatisticsPage.php
[edit]
[-] WorkerStatisticsInstance.php
[edit]
[+]
..
[-] ReservationOptions.php
[edit]
[-] WorkerStatisticsContext.php
[edit]
[-] WorkerChannelContext.php
[edit]
[-] WorkersStatisticsContext.php
[edit]
[-] ReservationContext.php
[edit]
[-] ReservationList.php
[edit]
[-] WorkersCumulativeStatisticsInstance.php
[edit]
[-] WorkerChannelInstance.php
[edit]
[-] WorkerStatisticsPage.php
[edit]
[-] WorkersRealTimeStatisticsInstance.php
[edit]
[-] ReservationInstance.php
[edit]
[-] WorkerChannelList.php
[edit]
[-] WorkersRealTimeStatisticsList.php
[edit]
[-] WorkersStatisticsOptions.php
[edit]
[-] WorkersCumulativeStatisticsContext.php
[edit]
[-] WorkersCumulativeStatisticsList.php
[edit]
[-] WorkerChannelPage.php
[edit]
[-] WorkerStatisticsList.php
[edit]
[-] ReservationPage.php
[edit]
[-] WorkersRealTimeStatisticsOptions.php
[edit]
[-] WorkersRealTimeStatisticsContext.php
[edit]
[-] WorkersStatisticsInstance.php
[edit]
[-] WorkerChannelOptions.php
[edit]
[-] WorkerStatisticsOptions.php
[edit]