diff --git a/src/Entity/GiteaConfiguration.php b/src/Entity/GiteaConfiguration.php new file mode 100644 index 0000000..0469ac5 --- /dev/null +++ b/src/Entity/GiteaConfiguration.php @@ -0,0 +1,57 @@ +id; + } + + public function getUrl(): ?string + { + return $this->url; + } + + public function setUrl(?string $url): static + { + $this->url = $url; + + return $this; + } + + public function getEncryptedToken(): ?string + { + return $this->encryptedToken; + } + + public function setEncryptedToken(?string $encryptedToken): static + { + $this->encryptedToken = $encryptedToken; + + return $this; + } + + public function hasToken(): bool + { + return null !== $this->encryptedToken; + } +} diff --git a/src/Repository/GiteaConfigurationRepository.php b/src/Repository/GiteaConfigurationRepository.php new file mode 100644 index 0000000..4f1096e --- /dev/null +++ b/src/Repository/GiteaConfigurationRepository.php @@ -0,0 +1,22 @@ +findOneBy([]); + } +}