src/Entity/Adresse.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use JMS\Serializer\Annotation\Expose;
  7. use JMS\Serializer\Annotation\ExclusionPolicy;
  8. use Captcha\Bundle\CaptchaBundle\Validator\Constraints as CaptchaAssert;
  9. /**
  10.  * @ExclusionPolicy("all")
  11.  * @ORM\Entity(repositoryClass="App\Repository\AdresseRepository")
  12.  */
  13. class Adresse
  14. {
  15.     const ADRESSELIVRAISON 1;
  16.     const ADRESSEFACTURATION 2;
  17.     const ADRESSEDESTINATAIRE 3;
  18.     const TYPE_COMPTE_PARTICULIER 1;
  19.     const TYPE_COMPTE_ENTREPRISE 2;
  20.     /**
  21.      * @Expose
  22.      * @ORM\Id()
  23.      * @ORM\GeneratedValue()
  24.      * @ORM\Column(type="integer")
  25.      */
  26.     private $id;
  27.     /**
  28.      * @Expose
  29.      * @ORM\Column(type="string", length=255, nullable=true)
  30.      */
  31.     private $titre;
  32.     /**
  33.      * @Expose
  34.      * @ORM\Column(type="string", length=255, nullable=true)
  35.      */
  36.     private $adresse;
  37.     /**
  38.      * @Expose
  39.      * @ORM\Column(type="string", length=255, nullable=true)
  40.      */
  41.     private $city;
  42.     /**
  43.      * @Expose
  44.      * @ORM\Column(type="string", length=255, nullable=true)
  45.      */
  46.     private $codePostal;
  47.     /**
  48.      * @Expose
  49.      * @ORM\Column(type="string", length=255, nullable=true)
  50.      */
  51.     private $country;
  52.     /**
  53.      * @ORM\Column(type="string", length=255, nullable=true)
  54.      */
  55.     private $countryCode;
  56.     /**
  57.      * @Expose
  58.      * @ORM\Column(type="string", length=255,nullable=true)
  59.      */
  60.     private $lat;
  61.     /**
  62.      * @Expose
  63.      * @ORM\Column(type="string", length=255,nullable=true)
  64.      */
  65.     private $longi;
  66.     /**
  67.      * @Expose
  68.      * @ORM\Column(type="string", length=180 ,nullable=true)
  69.      */
  70.     private $email;
  71.     /**
  72.      * @Expose
  73.      * @ORM\Column(type="string", length=255 ,nullable=true)
  74.      */
  75.     private $firstname;
  76.     /**
  77.      * @Expose
  78.      * @ORM\Column(type="string", length=255,nullable=true)
  79.      */
  80.     private $lastname;
  81.     /**
  82.      * @Expose
  83.      * @ORM\Column(type="string", length=255,nullable=true)
  84.      */
  85.     private $phone;
  86.     /**
  87.      * @Expose
  88.      * @ORM\Column(type="string", length=255,nullable=true)
  89.      */
  90.     private $batiment;
  91.     /**
  92.      * @Expose
  93.      * @ORM\Column(type="string", length=255,nullable=true)
  94.      */
  95.     private $conpany;
  96.     /**
  97.      * @Expose
  98.      * @ORM\Column(type="integer",nullable=true)
  99.      */
  100.     private $typeAdresse;
  101.     /**
  102.      * @ORM\Column(type="boolean")
  103.      */
  104.     private $isArchived false;
  105.     /**
  106.      * @ORM\ManyToOne(targetEntity="Customer", cascade={"persist"},inversedBy="adresses")
  107.      * @ORM\JoinColumn(name="customer_id", referencedColumnName="id", nullable=true)
  108.      */
  109.     private $customer;
  110.     /**
  111.      * @ORM\Column(type="integer",nullable=true)
  112.      */
  113.     private $typeCompte;
  114.     /**
  115.      * @ORM\Column(type="string", length=255,nullable=true)
  116.      */
  117.     private $secteurActivite;
  118.     /**
  119.      * @Expose
  120.      * @ORM\Column(type="string", length=255, nullable=true)
  121.      */
  122.     private $adresseSup;
  123.     /**
  124.      * @Expose
  125.      * @ORM\Column(type="boolean", nullable=true)
  126.      */
  127.     private $isAdresseSup;
  128.     protected $captchaCode;
  129.     public function getCaptchaCode()
  130.     {
  131.         return $this->captchaCode;
  132.     }
  133.     public function setCaptchaCode($captchaCode)
  134.     {
  135.         $this->captchaCode $captchaCode;
  136.     }
  137.     public function getLat(): ?string
  138.     {
  139.         return $this->lat;
  140.     }
  141.     public function getLongi(): ?string
  142.     {
  143.         return $this->longi;
  144.     }
  145.     public function setLongi(?string $longi): self
  146.     {
  147.         $this->longi $longi;
  148.         return $this;
  149.     }
  150.     public function setLat(?string $lat): self
  151.     {
  152.         $this->lat $lat;
  153.         return $this;
  154.     }
  155.     public function getId(): ?int
  156.     {
  157.         return $this->id;
  158.     }
  159.     public function getAdresse(): ?string
  160.     {
  161.         return $this->adresse;
  162.     }
  163.     public function setAdresse(?string $adresse): self
  164.     {
  165.         $this->adresse $adresse;
  166.         return $this;
  167.     }
  168.     public function getTitre(): ?string
  169.     {
  170.         return $this->titre;
  171.     }
  172.     public function setTitre(?string $titre): self
  173.     {
  174.         $this->titre $titre;
  175.         return $this;
  176.     }
  177.     public function getCity(): ?string
  178.     {
  179.         return $this->city;
  180.     }
  181.     public function setCity(?string $city): self
  182.     {
  183.         $this->city $city;
  184.         return $this;
  185.     }
  186.     public function getCodePostal(): ?string
  187.     {
  188.         return $this->codePostal;
  189.     }
  190.     public function setCodePostal(?string $codePostal): self
  191.     {
  192.         $this->codePostal $codePostal;
  193.         return $this;
  194.     }
  195.     public function getCountry(): ?string
  196.     {
  197.         return $this->country;
  198.     }
  199.     public function setCountry(?string $country): self
  200.     {
  201.         $this->country $country;
  202.         return $this;
  203.     }
  204.     public function getCustomer(): ?Customer
  205.     {
  206.         return $this->customer;
  207.     }
  208.     public function setCustomer(?Customer $customer): self
  209.     {
  210.         $this->customer $customer;
  211.         return $this;
  212.     }
  213.     public function getEmail(): ?string
  214.     {
  215.         return $this->email;
  216.     }
  217.     public function setEmail(?string $email): self
  218.     {
  219.         $this->email $email;
  220.         return $this;
  221.     }
  222.     public function getFirstname(): ?string
  223.     {
  224.         return $this->firstname;
  225.     }
  226.     public function setFirstname(?string $firstname): self
  227.     {
  228.         $this->firstname $firstname;
  229.         return $this;
  230.     }
  231.     public function getLastname(): ?string
  232.     {
  233.         return $this->lastname;
  234.     }
  235.     public function setLastname(?string $lastname): self
  236.     {
  237.         $this->lastname $lastname;
  238.         return $this;
  239.     }
  240.     public function getPhone(): ?string
  241.     {
  242.         return $this->phone;
  243.     }
  244.     public function setPhone(?string $phone): self
  245.     {
  246.         $this->phone $phone;
  247.         return $this;
  248.     }
  249.     public function getBatiment(): ?string
  250.     {
  251.         return $this->batiment;
  252.     }
  253.     public function setBatiment(?string $batiment): self
  254.     {
  255.         $this->batiment $batiment;
  256.         return $this;
  257.     }
  258.     public function getConpany(): ?string
  259.     {
  260.         return $this->conpany;
  261.     }
  262.     public function setConpany(?string $conpany): self
  263.     {
  264.         $this->conpany $conpany;
  265.         return $this;
  266.     }
  267.     public function getTypeAdresse(): ?int
  268.     {
  269.         return $this->typeAdresse;
  270.     }
  271.     public function setTypeAdresse(?int $typeAdresse): self
  272.     {
  273.         $this->typeAdresse $typeAdresse;
  274.         return $this;
  275.     }
  276.     public function getIsArchived(): ?bool
  277.     {
  278.         return $this->isArchived;
  279.     }
  280.     public function setIsArchived(bool $isArchived): self
  281.     {
  282.         $this->isArchived $isArchived;
  283.         return $this;
  284.     }
  285.     public function getTypeCompte(): ?int
  286.     {
  287.         return $this->typeCompte;
  288.     }
  289.     public function setTypeCompte(?int $typeCompte): self
  290.     {
  291.         $this->typeCompte $typeCompte;
  292.         return $this;
  293.     }
  294.     public function getSecteurActivite(): ?string
  295.     {
  296.         return $this->secteurActivite;
  297.     }
  298.     public function setSecteurActivite(?string $secteurActivite): self
  299.     {
  300.         $this->secteurActivite $secteurActivite;
  301.         return $this;
  302.     }
  303.     public function getAdresseSup(): ?string
  304.     {
  305.         return $this->adresseSup;
  306.     }
  307.     public function setAdresseSup(?string $adresseSup): self
  308.     {
  309.         $this->adresseSup $adresseSup;
  310.         return $this;
  311.     }
  312.     public function getIsAdresseSup(): ?bool
  313.     {
  314.         return $this->isAdresseSup;
  315.     }
  316.     public function setIsAdresseSup(?bool $isAdresseSup): self
  317.     {
  318.         $this->isAdresseSup $isAdresseSup;
  319.         return $this;
  320.     }
  321.     public function getCountryCode(): ?string
  322.     {
  323.         return $this->countryCode;
  324.     }
  325.     public function setCountryCode(?string $countryCode): self
  326.     {
  327.         $this->countryCode $countryCode;
  328.         return $this;
  329.     }
  330.     
  331. }