src/Entity/CatalogOrder.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CatalogOrderRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=CatalogOrderRepository::class)
  7.  */
  8. class CatalogOrder
  9. {
  10.     /**
  11.      * @ORM\Id()
  12.      * @ORM\GeneratedValue()
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="array", nullable=true)
  18.      */
  19.     private $catalogues = [];
  20.     /**
  21.      * @ORM\Column(type="string", length=255)
  22.      */
  23.     private $nom;
  24.     /**
  25.      * @ORM\Column(type="string", length=255)
  26.      */
  27.     private $prenom;
  28.     /**
  29.      * @ORM\Column(type="string", length=255)
  30.      */
  31.     private $genre;
  32.     /**
  33.      * @ORM\Column(type="string", length=255)
  34.      */
  35.     private $adresse1;
  36.     /**
  37.      * @ORM\Column(type="string", length=255, nullable=true)
  38.      */
  39.     private $adresse2;
  40.     /**
  41.      * @ORM\Column(type="string", length=255)
  42.      */
  43.     private $codePostal;
  44.     /**
  45.      * @ORM\Column(type="string", length=255)
  46.      */
  47.     private $ville;
  48.     /**
  49.     * @ORM\ManyToOne(targetEntity="App\Entity\pays", cascade={"persist"})
  50.     * @ORM\JoinColumn(nullable=false)
  51.     */
  52.     private $pays;
  53.     /**
  54.      * @ORM\Column(type="string", length=255)
  55.      */
  56.     private $email;
  57.     /**
  58.      * @ORM\Column(type="boolean")
  59.      */
  60.     private $optin;
  61.     public function getId(): ?int
  62.     {
  63.         return $this->id;
  64.     }
  65.     public function getCatalogues(): ?array
  66.     {
  67.         return $this->catalogues;
  68.     }
  69.     public function setCatalogues(?array $catalogues): self
  70.     {
  71.         $this->catalogues $catalogues;
  72.         return $this;
  73.     }
  74.     public function getNom(): ?string
  75.     {
  76.         return $this->nom;
  77.     }
  78.     public function setNom(string $nom): self
  79.     {
  80.         $this->nom $nom;
  81.         return $this;
  82.     }
  83.     public function getPrenom(): ?string
  84.     {
  85.         return $this->prenom;
  86.     }
  87.     public function setPrenom(string $prenom): self
  88.     {
  89.         $this->prenom $prenom;
  90.         return $this;
  91.     }
  92.     public function getGenre(): ?string
  93.     {
  94.         return $this->genre;
  95.     }
  96.     public function setGenre(string $genre): self
  97.     {
  98.         $this->genre $genre;
  99.         return $this;
  100.     }
  101.     public function getAdresse1(): ?string
  102.     {
  103.         return $this->adresse1;
  104.     }
  105.     public function setAdresse1(string $adresse1): self
  106.     {
  107.         $this->adresse1 $adresse1;
  108.         return $this;
  109.     }
  110.     public function getAdresse2(): ?string
  111.     {
  112.         return $this->adresse2;
  113.     }
  114.     public function setAdresse2(?string $adresse2): self
  115.     {
  116.         $this->adresse2 $adresse2;
  117.         return $this;
  118.     }
  119.     public function getCodePostal(): ?string
  120.     {
  121.         return $this->codePostal;
  122.     }
  123.     public function setCodePostal(string $codePostal): self
  124.     {
  125.         $this->codePostal $codePostal;
  126.         return $this;
  127.     }
  128.     public function getVille(): ?string
  129.     {
  130.         return $this->ville;
  131.     }
  132.     public function setVille(string $ville): self
  133.     {
  134.         $this->ville $ville;
  135.         return $this;
  136.     }
  137.      
  138.     public function setPays($pays)
  139.     {
  140.         $this->pays $pays;
  141.         return $this;
  142.     }
  143.    
  144.     public function getPays()
  145.     {
  146.         return $this->pays;
  147.     }
  148.     public function getEmail(): ?string
  149.     {
  150.         return $this->email;
  151.     }
  152.     public function setEmail(string $email): self
  153.     {
  154.         $this->email $email;
  155.         return $this;
  156.     }
  157.     public function getOptin(): ?bool
  158.     {
  159.         return $this->optin;
  160.     }
  161.     public function setOptin(bool $optin): self
  162.     {
  163.         $this->optin $optin;
  164.         return $this;
  165.     }
  166. }