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([]); + } +}