<?php
namespace App\Entity\Visa;
use App\Entity\User\User;
use App\Repository\Visa\VisaProjetsRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: VisaProjetsRepository::class)]
class VisaProjets
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255)]
private $nomDuProjet;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $code;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $villeDuProjet;
#[ORM\ManyToOne(targetEntity: User::class)]
private $idUser;
#[ORM\ManyToOne(targetEntity: VisaExigences::class, inversedBy: 'projet')]
private $visaExigences;
#[ORM\Column(type: 'date', nullable: true)]
private $dateCreation;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $statutPaiement;
#[ORM\Column(type: 'date', nullable: true)]
private $dateFinPaiement;
public function getId(): ?int
{
return $this->id;
}
public function getCode(): ?string
{
return $this->code;
}
public function setCode(string $code): self
{
$this->code = $code;
return $this;
}
public function getNomDuProjet(): ?string
{
return $this->nomDuProjet;
}
public function setNomDuProjet(string $nomDuProjet): self
{
$this->nomDuProjet = $nomDuProjet;
return $this;
}
public function getVilleDuProjet(): ?string
{
return $this->villeDuProjet;
}
public function setVilleDuProjet(?string $villeDuProjet): self
{
$this->villeDuProjet = $villeDuProjet;
return $this;
}
public function getIdUser(): ?User
{
return $this->idUser;
}
public function setIdUser(?User $idUser): self
{
$this->idUser = $idUser;
return $this;
}
public function getVisaExigences(): ?VisaExigences
{
return $this->visaExigences;
}
public function setVisaExigences(?VisaExigences $visaExigences): self
{
$this->visaExigences = $visaExigences;
return $this;
}
public function getDateCreation(): ?\DateTimeInterface
{
return $this->dateCreation;
}
public function setDateCreation(?\DateTimeInterface $dateCreation): self
{
$this->dateCreation = $dateCreation;
return $this;
}
public function getStatutPaiement(): ?string
{
return $this->statutPaiement;
}
public function setStatutPaiement(?string $statutPaiement): self
{
$this->statutPaiement = $statutPaiement;
return $this;
}
public function getDateFinPaiement(): ?\DateTimeInterface
{
return $this->dateFinPaiement;
}
public function setDateFinPaiement(?\DateTimeInterface $dateFinPaiement): self
{
$this->dateFinPaiement = $dateFinPaiement;
return $this;
}
}