endOffset = $endOffset; } /** * @return int */ public function getEndOffset() { return $this->endOffset; } /** * Required. The granularity used to interpret the `startOffset` and * `endOffset` for the extended reporting date range for a cohort report. * * Accepted values: GRANULARITY_UNSPECIFIED, DAILY, WEEKLY, MONTHLY * * @param self::GRANULARITY_* $granularity */ public function setGranularity($granularity) { $this->granularity = $granularity; } /** * @return self::GRANULARITY_* */ public function getGranularity() { return $this->granularity; } /** * `startOffset` specifies the start date of the extended reporting date range * for a cohort report. `startOffset` is commonly set to 0 so that reports * contain data from the acquisition of the cohort forward. If `granularity` * is `DAILY`, the `startDate` of the extended reporting date range is * `startDate` of the cohort plus `startOffset` days. If `granularity` is * `WEEKLY`, the `startDate` of the extended reporting date range is * `startDate` of the cohort plus `startOffset * 7` days. If `granularity` is * `MONTHLY`, the `startDate` of the extended reporting date range is * `startDate` of the cohort plus `startOffset * 30` days. * * @param int $startOffset */ public function setStartOffset($startOffset) { $this->startOffset = $startOffset; } /** * @return int */ public function getStartOffset() { return $this->startOffset; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(CohortsRange::class, 'Google_Service_AnalyticsData_CohortsRange');