public function getRetentionTime()
    {
        if (is_array($this->retentionTimeWindow)) {
            return ($this->retentionTimeWindow[static::RETENTION_TIME_START] +
                $this->retentionTimeWindow[static::RETENTION_TIME_END]) / 2;
        }
        
        return $this->retentionTimeWindow;
    }