<?php
namespace App\Entity;
use App\Repository\CatalogOrderRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=CatalogOrderRepository::class)
*/
class CatalogOrder
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="array", nullable=true)
*/
private $catalogues = [];
/**
* @ORM\Column(type="string", length=255)
*/
private $nom;
/**
* @ORM\Column(type="string", length=255)
*/
private $prenom;
/**
* @ORM\Column(type="string", length=255)
*/
private $genre;
/**
* @ORM\Column(type="string", length=255)
*/
private $adresse1;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $adresse2;
/**
* @ORM\Column(type="string", length=255)
*/
private $codePostal;
/**
* @ORM\Column(type="string", length=255)
*/
private $ville;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\pays", cascade={"persist"})
* @ORM\JoinColumn(nullable=false)
*/
private $pays;
/**
* @ORM\Column(type="string", length=255)
*/
private $email;
/**
* @ORM\Column(type="boolean")
*/
private $optin;
public function getId(): ?int
{
return $this->id;
}
public function getCatalogues(): ?array
{
return $this->catalogues;
}
public function setCatalogues(?array $catalogues): self
{
$this->catalogues = $catalogues;
return $this;
}
public function getNom(): ?string
{
return $this->nom;
}
public function setNom(string $nom): self
{
$this->nom = $nom;
return $this;
}
public function getPrenom(): ?string
{
return $this->prenom;
}
public function setPrenom(string $prenom): self
{
$this->prenom = $prenom;
return $this;
}
public function getGenre(): ?string
{
return $this->genre;
}
public function setGenre(string $genre): self
{
$this->genre = $genre;
return $this;
}
public function getAdresse1(): ?string
{
return $this->adresse1;
}
public function setAdresse1(string $adresse1): self
{
$this->adresse1 = $adresse1;
return $this;
}
public function getAdresse2(): ?string
{
return $this->adresse2;
}
public function setAdresse2(?string $adresse2): self
{
$this->adresse2 = $adresse2;
return $this;
}
public function getCodePostal(): ?string
{
return $this->codePostal;
}
public function setCodePostal(string $codePostal): self
{
$this->codePostal = $codePostal;
return $this;
}
public function getVille(): ?string
{
return $this->ville;
}
public function setVille(string $ville): self
{
$this->ville = $ville;
return $this;
}
public function setPays($pays)
{
$this->pays = $pays;
return $this;
}
public function getPays()
{
return $this->pays;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(string $email): self
{
$this->email = $email;
return $this;
}
public function getOptin(): ?bool
{
return $this->optin;
}
public function setOptin(bool $optin): self
{
$this->optin = $optin;
return $this;
}
}