count = $count; $this->perSecond = $time; if ($unit === self::HOUR) { $this->perSecond *= 60 * 60; } else if ($unit === self::MINUTE) { $this->perSecond *= 60; } } public function getCount(): int { return $this->count; } public function getWindow(): int { return $this->perSecond; } }