private function setExpiresPeriod(int $seconds) { $this->expiresPeriod = $seconds < 0 ? 0 : $seconds; }