diff --git a/src/Entity/Project.php b/src/Entity/Project.php index 907d9b5..c099f30 100644 --- a/src/Entity/Project.php +++ b/src/Entity/Project.php @@ -64,6 +64,14 @@ class Project #[Groups(['project:read', 'project:write'])] private ?Client $client = null; + #[ORM\Column(length: 255, nullable: true)] + #[Groups(['project:read', 'project:write'])] + private ?string $giteaOwner = null; + + #[ORM\Column(length: 255, nullable: true)] + #[Groups(['project:read', 'project:write'])] + private ?string $giteaRepo = null; + public function getId(): ?int { return $this->id; @@ -128,4 +136,33 @@ class Project return $this; } + + public function getGiteaOwner(): ?string + { + return $this->giteaOwner; + } + + public function setGiteaOwner(?string $giteaOwner): static + { + $this->giteaOwner = $giteaOwner; + + return $this; + } + + public function getGiteaRepo(): ?string + { + return $this->giteaRepo; + } + + public function setGiteaRepo(?string $giteaRepo): static + { + $this->giteaRepo = $giteaRepo; + + return $this; + } + + public function hasGiteaRepo(): bool + { + return null !== $this->giteaOwner && null !== $this->giteaRepo; + } }