options['category'] = $category; $this->options['startDate'] = $startDate; $this->options['endDate'] = $endDate; } /** * Only include usage of a given category * * @param string $category Only include usage of a given category * @return $this Fluent Builder */ public function setCategory($category) { $this->options['category'] = $category; return $this; } /** * Only include usage that has occurred on or after this date. Format is YYYY-MM-DD in GTM. As a convenience, you can also specify offsets to today, for example, StartDate=-30days, which will make StartDate 30 days before today * * @param \DateTime $startDate Filter by start date * @return $this Fluent Builder */ public function setStartDate($startDate) { $this->options['startDate'] = $startDate; return $this; } /** * Only include usage that has occurred on or after this date. Format is YYYY-MM-DD in GTM. As a convenience, you can also specify offsets to today, for example, EndDate=+30days, which will make EndDate 30 days from today * * @param \DateTime $endDate Filter by end date * @return $this Fluent Builder */ public function setEndDate($endDate) { $this->options['endDate'] = $endDate; return $this; } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString() { $options = array(); foreach ($this->options as $key => $value) { if ($value != Values::NONE) { $options[] = "$key=$value"; } } return '[Twilio.Api.V2010.ReadRecordOptions ' . implode(' ', $options) . ']'; } }