src/Entity/Offresinscrit.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Core\Annotation\ApiResource;
  4. use App\Repository\OffresinscritRepository;
  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(repositoryClassOffresinscritRepository::class)]
  10. #[ApiResource]
  11. class Offresinscrit
  12. {
  13.     #[ORM\Id]
  14.     #[ORM\GeneratedValue]
  15.     #[ORM\Column]
  16.     private ?int $id null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $nom null;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $prenom null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $email null;
  23.     #[ORM\Column(length255nullabletrue)]
  24.     private ?string $zphone null;
  25.     #[ORM\Column(length255nullabletrue)]
  26.     private ?string $adresse null;
  27.     #[ORM\Column(length255nullabletrue)]
  28.     private ?string $university null;
  29.     #[ORM\Column(length255nullabletrue)]
  30.     private ?string $societeactuelle null;
  31.     #[ORM\Column(length255nullabletrue)]
  32.     private ?string $adressesociete null;
  33.     #[ORM\Column(length255nullabletrue)]
  34.     private ?string $type null;
  35.     #[ORM\ManyToOne(inversedBy'offresinscrits')]
  36.     private ?User $relationus null;
  37.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  38.     private ?\DateTimeInterface $Date null;
  39.     #[ORM\Column(length255nullabletrue)]
  40.     private ?string $vu null;
  41.     #[ORM\Column(length255nullabletrue)]
  42.     private ?string $patente null;
  43.     #[ORM\Column(length255nullabletrue)]
  44.     private ?string $carteetd null;
  45.     #[ORM\Column(length255nullabletrue)]
  46.     private ?string $statut null;
  47.     #[ORM\OneToMany(mappedBy'userinscrit'targetEntityVoucher::class,cascade: ['remove'])]
  48.     private Collection $vouchers;
  49.     #[ORM\ManyToOne(inversedBy'inscrit')]
  50.     private ?Offres $offres null;
  51.     #[ORM\Column(length255nullabletrue)]
  52.     private ?string $facture null;
  53.     #[ORM\Column(length255nullabletrue)]
  54.     private ?string $reffacture null;
  55.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  56.     private ?\DateTimeInterface $datefacture null;
  57.     public function __construct()
  58.     {
  59.         $this->vouchers = new ArrayCollection();
  60.     }
  61.     public function getId(): ?int
  62.     {
  63.         return $this->id;
  64.     }
  65.     public function getNom(): ?string
  66.     {
  67.         return $this->nom;
  68.     }
  69.     public function setNom(?string $nom): self
  70.     {
  71.         $this->nom $nom;
  72.         return $this;
  73.     }
  74.     public function getPrenom(): ?string
  75.     {
  76.         return $this->prenom;
  77.     }
  78.     public function setPrenom(?string $prenom): self
  79.     {
  80.         $this->prenom $prenom;
  81.         return $this;
  82.     }
  83.     public function getEmail(): ?string
  84.     {
  85.         return $this->email;
  86.     }
  87.     public function setEmail(?string $email): self
  88.     {
  89.         $this->email $email;
  90.         return $this;
  91.     }
  92.     public function getZphone(): ?string
  93.     {
  94.         return $this->zphone;
  95.     }
  96.     public function setZphone(?string $zphone): self
  97.     {
  98.         $this->zphone $zphone;
  99.         return $this;
  100.     }
  101.     public function getAdresse(): ?string
  102.     {
  103.         return $this->adresse;
  104.     }
  105.     public function setAdresse(?string $adresse): self
  106.     {
  107.         $this->adresse $adresse;
  108.         return $this;
  109.     }
  110.     public function getUniversity(): ?string
  111.     {
  112.         return $this->university;
  113.     }
  114.     public function setUniversity(?string $university): self
  115.     {
  116.         $this->university $university;
  117.         return $this;
  118.     }
  119.     public function getSocieteactuelle(): ?string
  120.     {
  121.         return $this->societeactuelle;
  122.     }
  123.     public function setSocieteactuelle(?string $societeactuelle): self
  124.     {
  125.         $this->societeactuelle $societeactuelle;
  126.         return $this;
  127.     }
  128.     public function getAdressesociete(): ?string
  129.     {
  130.         return $this->adressesociete;
  131.     }
  132.     public function setAdressesociete(?string $adressesociete): self
  133.     {
  134.         $this->adressesociete $adressesociete;
  135.         return $this;
  136.     }
  137.     public function getType(): ?string
  138.     {
  139.         return $this->type;
  140.     }
  141.     public function setType(?string $type): self
  142.     {
  143.         $this->type $type;
  144.         return $this;
  145.     }
  146.     public function getRelationus(): ?User
  147.     {
  148.         return $this->relationus;
  149.     }
  150.     public function setRelationus(?User $relationus): self
  151.     {
  152.         $this->relationus $relationus;
  153.         return $this;
  154.     }
  155.     public function getDate(): ?\DateTimeInterface
  156.     {
  157.         return $this->Date;
  158.     }
  159.     public function setDate(?\DateTimeInterface $Date): self
  160.     {
  161.         $this->Date $Date;
  162.         return $this;
  163.     }
  164.     public function getVu(): ?string
  165.     {
  166.         return $this->vu;
  167.     }
  168.     public function setVu(?string $vu): self
  169.     {
  170.         $this->vu $vu;
  171.         return $this;
  172.     }
  173.     public function getPatente(): ?string
  174.     {
  175.         return $this->patente;
  176.     }
  177.     public function setPatente(?string $patente): self
  178.     {
  179.         $this->patente $patente;
  180.         return $this;
  181.     }
  182.     public function getCarteetd(): ?string
  183.     {
  184.         return $this->carteetd;
  185.     }
  186.     public function setCarteetd(?string $carteetd): self
  187.     {
  188.         $this->carteetd $carteetd;
  189.         return $this;
  190.     }
  191.     public function getStatut(): ?string
  192.     {
  193.         return $this->statut;
  194.     }
  195.     public function setStatut(?string $statut): self
  196.     {
  197.         $this->statut $statut;
  198.         return $this;
  199.     }
  200.     /**
  201.      * @return Collection<int, Voucher>
  202.      */
  203.     public function getVouchers(): Collection
  204.     {
  205.         return $this->vouchers;
  206.     }
  207.     public function addVoucher(Voucher $voucher): self
  208.     {
  209.         if (!$this->vouchers->contains($voucher)) {
  210.             $this->vouchers->add($voucher);
  211.             $voucher->setUserinscrit($this);
  212.         }
  213.         return $this;
  214.     }
  215.     public function removeVoucher(Voucher $voucher): self
  216.     {
  217.         if ($this->vouchers->removeElement($voucher)) {
  218.             // set the owning side to null (unless already changed)
  219.             if ($voucher->getUserinscrit() === $this) {
  220.                 $voucher->setUserinscrit(null);
  221.             }
  222.         }
  223.         return $this;
  224.     }
  225.     public function getOffres(): ?Offres
  226.     {
  227.         return $this->offres;
  228.     }
  229.     public function setOffres(?Offres $offres): self
  230.     {
  231.         $this->offres $offres;
  232.         return $this;
  233.     }
  234.     public function getFacture(): ?string
  235.     {
  236.         return $this->facture;
  237.     }
  238.     public function setFacture(?string $facture): self
  239.     {
  240.         $this->facture $facture;
  241.         return $this;
  242.     }
  243.     public function getReffacture(): ?string
  244.     {
  245.         return $this->reffacture;
  246.     }
  247.     public function setReffacture(?string $reffacture): self
  248.     {
  249.         $this->reffacture $reffacture;
  250.         return $this;
  251.     }
  252.     public function getDatefacture(): ?\DateTimeInterface
  253.     {
  254.         return $this->datefacture;
  255.     }
  256.     public function setDatefacture(?\DateTimeInterface $datefacture): self
  257.     {
  258.         $this->datefacture $datefacture;
  259.         return $this;
  260.     }
  261. }