220 lines
4.0 KiB
PHP
220 lines
4.0 KiB
PHP
<?php
|
|
|
|
namespace App\Entity;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
|
|
|
|
/**
|
|
* Scrumissue
|
|
*
|
|
* @ORM\Entity()
|
|
* @ORM\Table(name="scrumissue", uniqueConstraints={@ORM\UniqueConstraint(name="giteaissue", columns={"giteaid","scrum_id"})} )
|
|
* @UniqueEntity("giteaissue", message="Il existe déjà une issues liée avec ce id gitea")
|
|
*/
|
|
class Scrumissue
|
|
{
|
|
/**
|
|
* @ORM\Column(name="id", type="integer")
|
|
* @ORM\Id
|
|
* @ORM\GeneratedValue(strategy="AUTO")
|
|
*/
|
|
private $id;
|
|
|
|
/**
|
|
* @ORM\Column(type="integer")
|
|
*/
|
|
private $rowid;
|
|
|
|
/**
|
|
* @ORM\Column(type="float")
|
|
*/
|
|
private $weight=0;
|
|
|
|
/**
|
|
* @ORM\Column(type="integer")
|
|
*/
|
|
private $giteaid;
|
|
|
|
/**
|
|
* @ORM\Column(type="integer")
|
|
*/
|
|
private $giteanumber;
|
|
|
|
/**
|
|
* @ORM\Column(type="string")
|
|
*/
|
|
private $giteastate;
|
|
|
|
/**
|
|
* @ORM\Column(type="string")
|
|
*
|
|
*/
|
|
private $giteatitle;
|
|
|
|
/**
|
|
* @ORM\Column(type="integer", nullable=true)
|
|
*/
|
|
private $giteamilestone;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", nullable=true)
|
|
*
|
|
*/
|
|
private $giteamilestonename;
|
|
|
|
/**
|
|
* @ORM\Column(type="json")
|
|
*/
|
|
private $giteajson;
|
|
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity="Scrum", inversedBy="Scrumissues")
|
|
*/
|
|
private $scrum;
|
|
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity="Scrumcolumn", inversedBy="Scrumissues")
|
|
*/
|
|
private $scrumcolumn;
|
|
|
|
public function getId(): ?int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function getRowid(): ?int
|
|
{
|
|
return $this->rowid;
|
|
}
|
|
|
|
public function setRowid(int $rowid): self
|
|
{
|
|
$this->rowid = $rowid;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getGiteaid(): ?int
|
|
{
|
|
return $this->giteaid;
|
|
}
|
|
|
|
public function setGiteaid(int $giteaid): self
|
|
{
|
|
$this->giteaid = $giteaid;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getGiteanumber(): ?int
|
|
{
|
|
return $this->giteanumber;
|
|
}
|
|
|
|
public function setGiteanumber(int $giteanumber): self
|
|
{
|
|
$this->giteanumber = $giteanumber;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getGiteastate(): ?string
|
|
{
|
|
return $this->giteastate;
|
|
}
|
|
|
|
public function setGiteastate(string $giteastate): self
|
|
{
|
|
$this->giteastate = $giteastate;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getGiteatitle(): ?string
|
|
{
|
|
return $this->giteatitle;
|
|
}
|
|
|
|
public function setGiteatitle(string $giteatitle): self
|
|
{
|
|
$this->giteatitle = $giteatitle;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getGiteamilestone(): ?int
|
|
{
|
|
return $this->giteamilestone;
|
|
}
|
|
|
|
public function setGiteamilestone(?int $giteamilestone): self
|
|
{
|
|
$this->giteamilestone = $giteamilestone;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getGiteajson(): ?array
|
|
{
|
|
return $this->giteajson;
|
|
}
|
|
|
|
public function setGiteajson(array $giteajson): self
|
|
{
|
|
$this->giteajson = $giteajson;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getScrum(): ?Scrum
|
|
{
|
|
return $this->scrum;
|
|
}
|
|
|
|
public function setScrum(?Scrum $scrum): self
|
|
{
|
|
$this->scrum = $scrum;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getScrumcolumn(): ?Scrumcolumn
|
|
{
|
|
return $this->scrumcolumn;
|
|
}
|
|
|
|
public function setScrumcolumn(?Scrumcolumn $scrumcolumn): self
|
|
{
|
|
$this->scrumcolumn = $scrumcolumn;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getGiteamilestonename(): ?string
|
|
{
|
|
return $this->giteamilestonename;
|
|
}
|
|
|
|
public function setGiteamilestonename(?string $giteamilestonename): self
|
|
{
|
|
$this->giteamilestonename = $giteamilestonename;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getWeight(): ?float
|
|
{
|
|
return $this->weight;
|
|
}
|
|
|
|
public function setWeight(float $weight): self
|
|
{
|
|
$this->weight = $weight;
|
|
|
|
return $this;
|
|
}
|
|
|
|
|
|
|
|
} |