EthikTag/src/Entity/Don.php

83 lines
1.5 KiB
PHP

<?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]
private ?int $giftNumber = null;
#[ORM\ManyToOne(inversedBy: 'dons')]
#[ORM\JoinColumn(nullable: false)]
private ?DonCat $donCat = null;
#[ORM\ManyToOne(inversedBy: 'dons')]
#[ORM\JoinColumn(nullable: false)]
private ?Patient $donneur = null;
#[ORM\Column(length: 1000, nullable: true)]
private ?string $codeBarre = null;
public function getId(): ?int
{
return $this->id;
}
public function getGiftNumber(): ?int
{
return $this->giftNumber;
}
public function setGiftNumber(int $giftNumber): self
{
$this->giftNumber = $giftNumber;
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;
}
public function getCodeBarre(): ?string
{
return $this->codeBarre;
}
public function setCodeBarre(?string $codeBarre): self
{
$this->codeBarre = $codeBarre;
return $this;
}
}