<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use JMS\Serializer\Annotation\Expose;
use JMS\Serializer\Annotation\ExclusionPolicy;
use Captcha\Bundle\CaptchaBundle\Validator\Constraints as CaptchaAssert;
/**
* @ExclusionPolicy("all")
* @ORM\Entity(repositoryClass="App\Repository\AdresseRepository")
*/
class Adresse
{
const ADRESSELIVRAISON = 1;
const ADRESSEFACTURATION = 2;
const ADRESSEDESTINATAIRE = 3;
const TYPE_COMPTE_PARTICULIER = 1;
const TYPE_COMPTE_ENTREPRISE = 2;
/**
* @Expose
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @Expose
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $titre;
/**
* @Expose
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $adresse;
/**
* @Expose
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $city;
/**
* @Expose
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $codePostal;
/**
* @Expose
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $country;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $countryCode;
/**
* @Expose
* @ORM\Column(type="string", length=255,nullable=true)
*/
private $lat;
/**
* @Expose
* @ORM\Column(type="string", length=255,nullable=true)
*/
private $longi;
/**
* @Expose
* @ORM\Column(type="string", length=180 ,nullable=true)
*/
private $email;
/**
* @Expose
* @ORM\Column(type="string", length=255 ,nullable=true)
*/
private $firstname;
/**
* @Expose
* @ORM\Column(type="string", length=255,nullable=true)
*/
private $lastname;
/**
* @Expose
* @ORM\Column(type="string", length=255,nullable=true)
*/
private $phone;
/**
* @Expose
* @ORM\Column(type="string", length=255,nullable=true)
*/
private $batiment;
/**
* @Expose
* @ORM\Column(type="string", length=255,nullable=true)
*/
private $conpany;
/**
* @Expose
* @ORM\Column(type="integer",nullable=true)
*/
private $typeAdresse;
/**
* @ORM\Column(type="boolean")
*/
private $isArchived = false;
/**
* @ORM\ManyToOne(targetEntity="Customer", cascade={"persist"},inversedBy="adresses")
* @ORM\JoinColumn(name="customer_id", referencedColumnName="id", nullable=true)
*/
private $customer;
/**
* @ORM\Column(type="integer",nullable=true)
*/
private $typeCompte;
/**
* @ORM\Column(type="string", length=255,nullable=true)
*/
private $secteurActivite;
/**
* @Expose
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $adresseSup;
/**
* @Expose
* @ORM\Column(type="boolean", nullable=true)
*/
private $isAdresseSup;
protected $captchaCode;
public function getCaptchaCode()
{
return $this->captchaCode;
}
public function setCaptchaCode($captchaCode)
{
$this->captchaCode = $captchaCode;
}
public function getLat(): ?string
{
return $this->lat;
}
public function getLongi(): ?string
{
return $this->longi;
}
public function setLongi(?string $longi): self
{
$this->longi = $longi;
return $this;
}
public function setLat(?string $lat): self
{
$this->lat = $lat;
return $this;
}
public function getId(): ?int
{
return $this->id;
}
public function getAdresse(): ?string
{
return $this->adresse;
}
public function setAdresse(?string $adresse): self
{
$this->adresse = $adresse;
return $this;
}
public function getTitre(): ?string
{
return $this->titre;
}
public function setTitre(?string $titre): self
{
$this->titre = $titre;
return $this;
}
public function getCity(): ?string
{
return $this->city;
}
public function setCity(?string $city): self
{
$this->city = $city;
return $this;
}
public function getCodePostal(): ?string
{
return $this->codePostal;
}
public function setCodePostal(?string $codePostal): self
{
$this->codePostal = $codePostal;
return $this;
}
public function getCountry(): ?string
{
return $this->country;
}
public function setCountry(?string $country): self
{
$this->country = $country;
return $this;
}
public function getCustomer(): ?Customer
{
return $this->customer;
}
public function setCustomer(?Customer $customer): self
{
$this->customer = $customer;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): self
{
$this->email = $email;
return $this;
}
public function getFirstname(): ?string
{
return $this->firstname;
}
public function setFirstname(?string $firstname): self
{
$this->firstname = $firstname;
return $this;
}
public function getLastname(): ?string
{
return $this->lastname;
}
public function setLastname(?string $lastname): self
{
$this->lastname = $lastname;
return $this;
}
public function getPhone(): ?string
{
return $this->phone;
}
public function setPhone(?string $phone): self
{
$this->phone = $phone;
return $this;
}
public function getBatiment(): ?string
{
return $this->batiment;
}
public function setBatiment(?string $batiment): self
{
$this->batiment = $batiment;
return $this;
}
public function getConpany(): ?string
{
return $this->conpany;
}
public function setConpany(?string $conpany): self
{
$this->conpany = $conpany;
return $this;
}
public function getTypeAdresse(): ?int
{
return $this->typeAdresse;
}
public function setTypeAdresse(?int $typeAdresse): self
{
$this->typeAdresse = $typeAdresse;
return $this;
}
public function getIsArchived(): ?bool
{
return $this->isArchived;
}
public function setIsArchived(bool $isArchived): self
{
$this->isArchived = $isArchived;
return $this;
}
public function getTypeCompte(): ?int
{
return $this->typeCompte;
}
public function setTypeCompte(?int $typeCompte): self
{
$this->typeCompte = $typeCompte;
return $this;
}
public function getSecteurActivite(): ?string
{
return $this->secteurActivite;
}
public function setSecteurActivite(?string $secteurActivite): self
{
$this->secteurActivite = $secteurActivite;
return $this;
}
public function getAdresseSup(): ?string
{
return $this->adresseSup;
}
public function setAdresseSup(?string $adresseSup): self
{
$this->adresseSup = $adresseSup;
return $this;
}
public function getIsAdresseSup(): ?bool
{
return $this->isAdresseSup;
}
public function setIsAdresseSup(?bool $isAdresseSup): self
{
$this->isAdresseSup = $isAdresseSup;
return $this;
}
public function getCountryCode(): ?string
{
return $this->countryCode;
}
public function setCountryCode(?string $countryCode): self
{
$this->countryCode = $countryCode;
return $this;
}
}