first commit
This commit is contained in:
118
src/Entity/Issue.php
Normal file
118
src/Entity/Issue.php
Normal file
@ -0,0 +1,118 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Repository\IssueRepository;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
|
||||
#[ORM\Entity(repositoryClass: IssueRepository::class)]
|
||||
#[ORM\Index(name: 'idx_issue_row_sort', columns: ['rowstatus', 'rowsprint', 'rowversion', 'rowissue', 'id'])]
|
||||
class Issue
|
||||
{
|
||||
#[ORM\Id]
|
||||
#[ORM\Column]
|
||||
private ?int $id = null;
|
||||
|
||||
#[ORM\Column(nullable: false)]
|
||||
private array $redmine;
|
||||
|
||||
#[ORM\Column(nullable: false)]
|
||||
private int $rowstatus = 0;
|
||||
|
||||
#[ORM\Column(nullable: false)]
|
||||
private string $rowversion = '';
|
||||
|
||||
#[ORM\Column(nullable: false)]
|
||||
private string $rowsprint = '';
|
||||
|
||||
#[ORM\Column(nullable: false)]
|
||||
private int $rowissue = 0;
|
||||
|
||||
#[ORM\ManyToOne(targetEntity: Project::class, inversedBy: 'issues')]
|
||||
#[ORM\JoinColumn(nullable: false)]
|
||||
private Project $project;
|
||||
|
||||
public function getId(): ?int
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
public function setId(int $id): static
|
||||
{
|
||||
$this->id = $id;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getRedmine(): array
|
||||
{
|
||||
return $this->redmine;
|
||||
}
|
||||
|
||||
public function setRedmine(array $redmine): static
|
||||
{
|
||||
$this->redmine = $redmine;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getRowstatus(): int
|
||||
{
|
||||
return $this->rowstatus;
|
||||
}
|
||||
|
||||
public function setRowstatus(int $rowstatus): static
|
||||
{
|
||||
$this->rowstatus = $rowstatus;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getRowversion(): string
|
||||
{
|
||||
return $this->rowversion;
|
||||
}
|
||||
|
||||
public function setRowversion(string $rowversion): static
|
||||
{
|
||||
$this->rowversion = $rowversion;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getRowsprint(): string
|
||||
{
|
||||
return $this->rowsprint;
|
||||
}
|
||||
|
||||
public function setRowsprint(string $rowsprint): static
|
||||
{
|
||||
$this->rowsprint = $rowsprint;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getRowissue(): int
|
||||
{
|
||||
return $this->rowissue;
|
||||
}
|
||||
|
||||
public function setRowissue(int $rowissue): static
|
||||
{
|
||||
$this->rowissue = $rowissue;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getProject(): Project
|
||||
{
|
||||
return $this->project;
|
||||
}
|
||||
|
||||
public function setProject(Project $project): self
|
||||
{
|
||||
$this->project = $project;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user