token = $token; } public function setTimeLimit(?int $timeLimit): void { if (isset($timeLimit)) { $this->timeLimit = $timeLimit; } } public function setTimeLimitType(string $timeLimitType): void { if (in_array($timeLimitType, self::$timeLimitTypes)) { $this->timeLimitType = $timeLimitType; } } public function setNoMove(bool $noMove): void { $this->noMove = $noMove; } public function setNoPan(bool $noPan): void { $this->noPan = $noPan; } public function setNoZoom(bool $noZoom): void { $this->noZoom = $noZoom; } public function setCreatedDate(DateTime $created): void { $this->created = $created; } public function setCreated(string $created): void { $this->created = new DateTime($created); } public function getToken(): int { return $this->token; } public function getTimeLimit(): ?int { return $this->timeLimit; } public function getTimeLimitType(): string { return $this->timeLimitType; } public function getNoMove(): bool { return $this->noMove; } public function getNoPan(): bool { return $this->noPan; } public function getNoZoom(): bool { return $this->noZoom; } public function getCreatedDate(): DateTime { return $this->created; } public function getCreated(): string { return $this->created->format('Y-m-d H:i:s'); } }