options['end'] = $end; $this->options['start'] = $start; $this->options['granularity'] = $granularity; } /** * The end * * @param \DateTime $end The end * @return $this Fluent Builder */ public function setEnd($end) { $this->options['end'] = $end; return $this; } /** * The start * * @param \DateTime $start The start * @return $this Fluent Builder */ public function setStart($start) { $this->options['start'] = $start; return $this; } /** * The granularity * * @param string $granularity The granularity * @return $this Fluent Builder */ public function setGranularity($granularity) { $this->options['granularity'] = $granularity; 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.Wireless.V1.ReadUsageRecordOptions ' . implode(' ', $options) . ']'; } }