dataCenterId = $dataCenterId; $this->workerId = $workerId; $this->sequence = $sequence; $this->timestamp = $timestamp; $this->beginTimestamp = $beginTimestamp; } public function getTimeInterval(): int { return $this->timestamp - $this->beginTimestamp; } public function getDataCenterId(): int { return $this->dataCenterId; } public function getWorkerId(): int { return $this->workerId; } public function getSequence(): int { return $this->sequence; } public function setDataCenterId(int $dataCenterId): self { $this->dataCenterId = $dataCenterId; return $this; } public function setWorkerId(int $workerId): self { $this->workerId = $workerId; return $this; } public function setSequence(int $sequence): self { $this->sequence = $sequence; return $this; } public function getTimestamp(): int { return $this->timestamp; } public function getBeginTimestamp(): int { return $this->beginTimestamp; } }