EthikTag/src/Entity/Don.php

83 lines
1.5 KiB
PHP
Raw Normal View History

2022-10-15 15:22:45 +02:00
<?php
namespace App\Entity;
use App\Repository\DonRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: DonRepository::class)]
class Don
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column]
2022-10-16 10:36:53 +02:00
private ?string $codeBarre = null;
2022-10-15 15:22:45 +02:00
#[ORM\ManyToOne(inversedBy: 'dons')]
#[ORM\JoinColumn(nullable: false)]
private ?DonCat $donCat = null;
#[ORM\ManyToOne(inversedBy: 'dons')]
#[ORM\JoinColumn(nullable: false)]
private ?Patient $donneur = null;
2022-10-15 22:24:22 +02:00
#[ORM\Column]
private ?int $nbreTube = null;
2022-10-15 15:22:45 +02:00
public function getId(): ?int
{
return $this->id;
}
2022-10-16 10:36:53 +02:00
public function getCodeBarre(): ?string
2022-10-15 15:22:45 +02:00
{
2022-10-16 10:36:53 +02:00
return $this->codeBarre;
2022-10-15 15:22:45 +02:00
}
2022-10-16 10:36:53 +02:00
public function setCodeBarre(string $codeBarre): self
2022-10-15 15:22:45 +02:00
{
2022-10-16 10:36:53 +02:00
$this->codeBarre = $codeBarre;
2022-10-15 15:22:45 +02:00
return $this;
}
public function getDonCat(): ?DonCat
{
return $this->donCat;
}
public function setDonCat(?DonCat $donCat): self
{
$this->donCat = $donCat;
return $this;
}
public function getDonneur(): ?Patient
{
return $this->donneur;
}
public function setDonneur(?Patient $donneur): self
{
$this->donneur = $donneur;
return $this;
}
2022-10-15 22:24:22 +02:00
public function getNbreTube(): ?int
2022-10-15 15:22:45 +02:00
{
2022-10-15 22:24:22 +02:00
return $this->nbreTube;
2022-10-15 15:22:45 +02:00
}
2022-10-15 22:24:22 +02:00
public function setNbreTube(int $nbreTube): self
2022-10-15 15:22:45 +02:00
{
2022-10-15 22:24:22 +02:00
$this->nbreTube = $nbreTube;
2022-10-15 15:22:45 +02:00
return $this;
}
}