protected function setDefaultTimePeriod(array $params = []): array
    {
        $options = [];
        if (!empty($params['start'])) {
            $options['period']['start_date'] = $params['start'];
        }

        if (!empty($params['end'])) {
            $options['period']['end_date'] = $params['end'];
        }

        return $options;
    }