- <?php
-
- namespace Lc\ShopBundle\Model;
-
- use Doctrine\Common\Collections\ArrayCollection;
- use Doctrine\Common\Collections\Collection;
- use Doctrine\ORM\Mapping as ORM;
-
-
- abstract class Address extends AbstractEntity
- {
-
-
- protected $user;
-
-
-
- protected $title;
-
-
-
- protected $type;
-
-
-
- protected $civility;
-
-
-
- protected $lastname;
-
-
-
- protected $firstname;
-
-
-
- protected $address;
-
-
-
- protected $zip;
-
-
-
- protected $city;
-
-
-
- protected $country;
-
-
-
- protected $company;
-
-
-
- protected $siret;
-
-
-
- protected $tva;
-
-
-
- protected $phone;
-
-
-
- protected $comment;
-
-
-
- protected $pointSale;
-
-
-
- protected $merchant;
-
- public function __construct()
- {
- $this->shopOrders = new ArrayCollection();
- }
-
- public function getUser(): ?User
- {
- return $this->user;
- }
-
- public function setUser(?User $user): self
- {
- $this->user = $user;
-
- return $this;
- }
-
- public function getTitle(): ?string
- {
- return $this->title;
- }
-
- public function setTitle(string $title): self
- {
- $this->title = $title;
-
- return $this;
- }
-
- public function getType(): ?string
- {
- return $this->type;
- }
-
- public function setType(string $type): self
- {
- $this->type = $type;
-
- return $this;
- }
-
- public function getCivility(): ?bool
- {
- return $this->civility;
- }
-
- public function setCivility(?bool $civility): self
- {
- $this->civility = $civility;
-
- return $this;
- }
-
- public function getLastname(): ?string
- {
- return $this->lastname;
- }
-
- public function setLastname(?string $lastname): self
- {
- $this->lastname = $lastname;
-
- return $this;
- }
-
- public function getFirstname(): ?string
- {
- return $this->firstname;
- }
-
- public function setFirstname(?string $firstname): self
- {
- $this->firstname = $firstname;
-
- return $this;
- }
-
- public function getAddress(): ?string
- {
- return $this->address;
- }
-
- public function setAddress(string $address): self
- {
- $this->address = $address;
-
- return $this;
- }
-
- public function getZip(): ?string
- {
- return $this->zip;
- }
-
- public function setZip(string $zip): self
- {
- $this->zip = $zip;
-
- return $this;
- }
-
- public function getCity(): ?string
- {
- return $this->city;
- }
-
- public function setCity(string $city): self
- {
- $this->city = $city;
-
- return $this;
- }
-
- public function getCountry(): ?string
- {
- return $this->country;
- }
-
- public function setCountry(string $country): self
- {
- $this->country = $country;
-
- return $this;
- }
-
- public function getCompany(): ?string
- {
- return $this->company;
- }
-
- public function setCompany(?string $company): self
- {
- $this->company = $company;
-
- return $this;
- }
-
- public function getSiret(): ?string
- {
- return $this->siret;
- }
-
- public function setSiret(?string $siret): self
- {
- $this->siret = $siret;
-
- return $this;
- }
-
- public function getTva(): ?string
- {
- return $this->tva;
- }
-
- public function setTva(?string $tva): self
- {
- $this->tva = $tva;
-
- return $this;
- }
-
- public function getPhone(): ?string
- {
- return $this->phone;
- }
-
- public function setPhone(?string $phone): self
- {
- $this->phone = $phone;
-
- return $this;
- }
-
- public function getComment(): ?string
- {
- return $this->comment;
- }
-
- public function setComment(?string $comment): self
- {
- $this->comment = $comment;
-
- return $this;
- }
-
-
- public function getPointSale(): ?PointSale
- {
- return $this->pointSale;
- }
-
- public function setPointSale(PointSale $pointSale): self
- {
- $this->pointSale = $pointSale;
-
-
- if ($pointSale->getAddress() !== $this) {
- $pointSale->setAddress($this);
- }
-
- return $this;
- }
-
- public function getMerchant(): ?Merchant
- {
- return $this->merchant;
- }
-
- public function setMerchant(Merchant $merchant): self
- {
- $this->merchant = $merchant;
-
-
- if ($merchant->getAddress() !== $this) {
- $merchant->setAddress($this);
- }
-
- return $this;
- }
- }
|