feat : add gitea owner/repo fields to Project entity
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user