src/Entity/Visa/VisaExigences.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Visa;
  3. use App\Entity\User\User;
  4. use App\Repository\Visa\VisaExigencesRepository;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\DBAL\Types\Types;
  8. use Doctrine\ORM\Mapping as ORM;
  9. #[ORM\Entity(repositoryClassVisaExigencesRepository::class)]
  10. class VisaExigences
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column(type'integer')]
  15.     private $id;
  16.     #[ORM\Column(type'float'nullabletrue)]
  17.     private $numeroExigence;
  18.     #[ORM\Column(type'string'length255nullabletrue)]
  19.     private $lot;
  20.     #[ORM\Column(type'string'length255nullabletrue)]
  21.     private $sousLot;
  22.     #[ORM\Column(type'string'length255nullabletrue)]
  23.     private $cibles;
  24.     #[ORM\Column(type'string'length255nullabletrue)]
  25.     private $elementsConcernes;
  26.     #[ORM\Column(type'text'nullabletrue)]
  27.     private $exigences;
  28.     #[ORM\Column(type'text'nullabletrue)]
  29.     private $commentairesEntreprise;
  30.     #[ORM\Column(type'text'nullabletrue)]
  31.     private $commentairesMOE;
  32.     #[ORM\Column(type'text'nullabletrue)]
  33.     private $localisation;
  34.     #[ORM\ManyToOne(targetEntityUser::class)]
  35.     private $idUser;
  36.     #[ORM\ManyToOne(targetEntityVisaProjets::class)]
  37.     private $idProjet;
  38.     #[ORM\Column(type'boolean'nullabletrue)]
  39.     private $validation;
  40.     /**
  41.      * @var Collection $visaJustificatifs
  42.      */
  43.     #[ORM\OneToMany(targetEntityVisaJustificatifs::class, mappedBy'exigence')]
  44.     private Collection $visaJustificatifs;
  45.     public function getVisaJustificatifs(): Collection {
  46.                     return $this->visaJustificatifs;
  47.                 }
  48.     public function __construct()
  49.     {
  50.         $this->User = new ArrayCollection();
  51.         $this->projet = new ArrayCollection();
  52.         $this->visaJustificatifs=new ArrayCollection();
  53.     }
  54.     public function getId(): ?int
  55.     {
  56.         return $this->id;
  57.     }
  58.     public function getValidation(): ?bool
  59.                 {
  60.                     return $this->validation;
  61.                 }
  62.     public function setValidation(?bool $validation): self
  63.                 {
  64.                     $this->validation $validation;
  65.             
  66.                     return $this;
  67.                 }
  68.     public function getCommentairesMOE(): ?string
  69.                 {
  70.                     return $this->commentairesMOE;
  71.                 }
  72.     public function setCommentairesMOE(?string $commentairesMOE): self
  73.                 {
  74.                     $this->commentairesMOE $commentairesMOE;
  75.             
  76.                     return $this;
  77.                 }
  78.     public function getLocalisation(): ?string
  79.                 {
  80.                     return $this->localisation;
  81.                 }
  82.     public function setLocalisation(?string $localisation): self
  83.                 {
  84.                     $this->localisation $localisation;
  85.             
  86.                     return $this;
  87.                 }
  88.     public function getIdUser(): ?User
  89.                 {
  90.                     return $this->idUser;
  91.                 }
  92.     public function setIdUser(?User $idUser): self
  93.                 {
  94.                     $this->idUser $idUser;
  95.             
  96.                     return $this;
  97.                 }
  98.     public function getIdProjet(): ?VisaProjets
  99.                 {
  100.                     return $this->idProjet;
  101.                 }
  102.     public function setIdProjet(?VisaProjets $idProjet): self
  103.                 {
  104.                     $this->idProjet $idProjet;
  105.             
  106.                     return $this;
  107.                 }
  108.     public function getNumeroExigence(): ?float
  109.     {
  110.         return $this->numeroExigence;
  111.     }
  112.     public function setNumeroExigence(?float $numeroExigence): self
  113.     {
  114.         $this->numeroExigence $numeroExigence;
  115.         return $this;
  116.     }
  117.     public function getLot(): ?string
  118.     {
  119.         return $this->lot;
  120.     }
  121.     public function setLot(?string $lot): self
  122.     {
  123.         $this->lot $lot;
  124.         return $this;
  125.     }
  126.     public function getSousLot(): ?string
  127.     {
  128.         return $this->sousLot;
  129.     }
  130.     public function setSousLot(?string $sousLot): self
  131.     {
  132.         $this->sousLot $sousLot;
  133.         return $this;
  134.     }
  135.     public function getCibles(): ?string
  136.     {
  137.         return $this->cibles;
  138.     }
  139.     public function setCibles(?string $cibles): self
  140.     {
  141.         $this->cibles $cibles;
  142.         return $this;
  143.     }
  144.     public function getElementsConcernes(): ?string
  145.     {
  146.         return $this->elementsConcernes;
  147.     }
  148.     public function setElementsConcernes(?string $elementsConcernes): self
  149.     {
  150.         $this->elementsConcernes $elementsConcernes;
  151.         return $this;
  152.     }
  153.     public function getExigences(): ?string
  154.     {
  155.         return $this->exigences;
  156.     }
  157.     public function setExigences(?string $exigences): self
  158.     {
  159.         $this->exigences $exigences;
  160.         return $this;
  161.     }
  162.     public function getCommentairesEntreprise(): ?string
  163.     {
  164.         return $this->commentairesEntreprise;
  165.     }
  166.     public function setCommentairesEntreprise(?string $commentairesEntreprise): self
  167.     {
  168.         $this->commentairesEntreprise $commentairesEntreprise;
  169.         return $this;
  170.     }
  171.     public function isValidation(): ?bool
  172.     {
  173.         return $this->validation;
  174.     }
  175.     public function addVisaJustificatif(VisaJustificatifs $visaJustificatif): self
  176.     {
  177.         if (!$this->visaJustificatifs->contains($visaJustificatif)) {
  178.             $this->visaJustificatifs->add($visaJustificatif);
  179.             $visaJustificatif->setExigence($this);
  180.         }
  181.         return $this;
  182.     }
  183.     public function removeVisaJustificatif(VisaJustificatifs $visaJustificatif): self
  184.     {
  185.         if ($this->visaJustificatifs->removeElement($visaJustificatif)) {
  186.             // set the owning side to null (unless already changed)
  187.             if ($visaJustificatif->getExigence() === $this) {
  188.                 $visaJustificatif->setExigence(null);
  189.             }
  190.         }
  191.         return $this;
  192.     }
  193. }