From 043826075d877bd7fde82c30ae915f42065c1274 Mon Sep 17 00:00:00 2001 From: matthieu Date: Sun, 15 Mar 2026 18:05:07 +0100 Subject: [PATCH] feat(bookstack) : add BookStackConfiguration entity and repository --- src/Entity/BookStackConfiguration.php | 72 +++++++++++++++++++ .../BookStackConfigurationRepository.php | 22 ++++++ 2 files changed, 94 insertions(+) create mode 100644 src/Entity/BookStackConfiguration.php create mode 100644 src/Repository/BookStackConfigurationRepository.php diff --git a/src/Entity/BookStackConfiguration.php b/src/Entity/BookStackConfiguration.php new file mode 100644 index 0000000..48300fe --- /dev/null +++ b/src/Entity/BookStackConfiguration.php @@ -0,0 +1,72 @@ +id; + } + + public function getUrl(): ?string + { + return $this->url; + } + + public function setUrl(?string $url): static + { + $this->url = $url; + + return $this; + } + + public function getEncryptedTokenId(): ?string + { + return $this->encryptedTokenId; + } + + public function setEncryptedTokenId(?string $encryptedTokenId): static + { + $this->encryptedTokenId = $encryptedTokenId; + + return $this; + } + + public function getEncryptedTokenSecret(): ?string + { + return $this->encryptedTokenSecret; + } + + public function setEncryptedTokenSecret(?string $encryptedTokenSecret): static + { + $this->encryptedTokenSecret = $encryptedTokenSecret; + + return $this; + } + + public function hasToken(): bool + { + return null !== $this->encryptedTokenId && null !== $this->encryptedTokenSecret; + } +} diff --git a/src/Repository/BookStackConfigurationRepository.php b/src/Repository/BookStackConfigurationRepository.php new file mode 100644 index 0000000..648321d --- /dev/null +++ b/src/Repository/BookStackConfigurationRepository.php @@ -0,0 +1,22 @@ +findOneBy([]); + } +}