src/Entity/Adherer.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AdhererRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=AdhererRepository::class)
  7.  */
  8. class Adherer
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255)
  18.      */
  19.     private $nom;
  20.     /**
  21.      * @ORM\Column(type="string", length=255, nullable=true)
  22.      */
  23.     private $prenom;
  24.     /**
  25.      * @ORM\Column(type="string", length=255)
  26.      */
  27.     private $numero;
  28.     /**
  29.      * @ORM\Column(type="float")
  30.      */
  31.     private $prisencharge;
  32.     /**
  33.      * @ORM\Column(type="text", nullable=true)
  34.      */
  35.     private $remarque;
  36.     /**
  37.      * @ORM\ManyToOne(targetEntity=Assurance::class, inversedBy="adherers")
  38.      * @ORM\JoinColumn(nullable=false)
  39.      */
  40.     private $assurance;
  41.     public function getId(): ?int
  42.     {
  43.         return $this->id;
  44.     }
  45.     public function getNom(): ?string
  46.     {
  47.         return $this->nom;
  48.     }
  49.     public function setNom(string $nom): self
  50.     {
  51.         $this->nom $nom;
  52.         return $this;
  53.     }
  54.     public function getPrenom(): ?string
  55.     {
  56.         return $this->prenom;
  57.     }
  58.     public function setPrenom(?string $prenom): self
  59.     {
  60.         $this->prenom $prenom;
  61.         return $this;
  62.     }
  63.     public function getNumero(): ?string
  64.     {
  65.         return $this->numero;
  66.     }
  67.     public function setNumero(string $numero): self
  68.     {
  69.         $this->numero $numero;
  70.         return $this;
  71.     }
  72.     public function getPrisencharge(): ?float
  73.     {
  74.         return $this->prisencharge;
  75.     }
  76.     public function setPrisencharge(float $prisencharge): self
  77.     {
  78.         $this->prisencharge $prisencharge;
  79.         return $this;
  80.     }
  81.     public function getRemarque(): ?string
  82.     {
  83.         return $this->remarque;
  84.     }
  85.     public function setRemarque(?string $remarque): self
  86.     {
  87.         $this->remarque $remarque;
  88.         return $this;
  89.     }
  90.     public function getAssurance(): ?Assurance
  91.     {
  92.         return $this->assurance;
  93.     }
  94.     public function setAssurance(?Assurance $assurance): self
  95.     {
  96.         $this->assurance $assurance;
  97.         return $this;
  98.     }
  99. }