active = true; } public function jsonSerialize(): array { return [ "id" => $this->getId(), "active" => $this->active, "apiKey" => $this->apiKey, "validUntil" => $this->validUntil->getTimestamp() ]; } }