preset = $preset; $this->start = $start; $this->end = $end; $this->granularity = $granularity; $this->label = $label; $this->filter_type = $filter_type; $this->time = $time; } /** * The { filter_type, time } pair every legacy DB method understands. * * @return array [ 'filter_type' => string, 'time' => string|int ] */ public function legacy_pair(): array { return array( 'filter_type' => $this->filter_type, 'time' => $this->time, ); } }