<?php
namespace App\Entity\Gos;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use JMS\Serializer\Annotation as JMS;
/**
* Address
*
* @ORM\Table()
* @ORM\Entity(repositoryClass="App\Repository\AddressRepository")
* @ORM\HasLifecycleCallbacks
* @JMS\ExclusionPolicy("all")
* @JMS\VirtualProperty(
* "clientType",
* exp="object.getClientTypeSlug()",
* options={@JMS\SerializedName("clientType")}
* )
*/
class Address
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="companyName", type="string", length=255, nullable=true)
* @JMS\Expose()
*/
private $companyName;
/**
* @var string
*
* @ORM\Column(name="nip", type="string", length=20, nullable=true)
* @Assert\Length(max = 20)
* @JMS\Expose()
*/
private $nip;
/**
* @var string
*
* @ORM\Column(name="firstName", type="string", length=50, nullable=true)
* @Assert\Length(max = 50)
* @JMS\Expose()
*/
private $firstName;
/**
* @var string
*
* @ORM\Column(name="lastName", type="string", length=50, nullable=true)
* @Assert\Length(max = 50)
* @JMS\Expose()
*/
private $lastName;
/**
* @var string
*
* @ORM\Column(name="address", type="string", length=255, nullable=true)
* @JMS\Expose()
*/
private $address;
/**
* @var string
*
* @ORM\Column(name="houseNumber", type="string", length=255, nullable=true)
* @JMS\Expose()
*/
private $houseNumber;
/**
* @var string
*
* @ORM\Column(name="apartmentNumber", type="string", length=255, nullable=true)
* @JMS\Expose()
*/
private $apartmentNumber;
/**
* @var string
*
* @ORM\Column(name="city", type="string", length=100, nullable=true)
* @Assert\Length(max = 100)
* @JMS\Expose()
*/
private $city;
/**
* @var string
*
* @ORM\Column(name="postalCode", type="string", length=9, nullable=true)
* @Assert\Length(max = 9)
* @JMS\Expose()
*/
private $postalCode;
/**
* @var string
*
* @ORM\Column(name="phone", type="string", length=30, nullable=true)
* @Assert\Length(max = 30)
* @JMS\Expose()
*/
private $phone;
/**
* @var string
*
* @ORM\Column(name="position", type="string", length=255, nullable=true)
* @JMS\Expose()
*/
private $position;
/**
* @var string
*
* @ORM\Column(name="correspondenceName", type="string", length=255, nullable=true)
* @JMS\Expose()
*/
private $correspondenceName;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @JMS\Expose()
*/
private $correspondenceFirstName;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @JMS\Expose()
*/
private $correspondenceLastName;
/**
* @var string
*
* @ORM\Column(name="correspondenceAddress", type="string", length=255, nullable=true)
* @JMS\Expose()
*/
private $correspondenceAddress;
/**
* @var string
*
* @ORM\Column(name="correspondenceHouseNumber", type="string", length=255, nullable=true)
* @JMS\Expose()
*/
private $correspondenceHouseNumber;
/**
* @var string
*
* @ORM\Column(name="correspondenceApartmentNumber", type="string", length=255, nullable=true)
* @JMS\Expose()
*/
private $correspondenceApartmentNumber;
/**
* @var string
*
* @ORM\Column(name="correspondenceCity", type="string", length=255, nullable=true)
* @JMS\Expose()
*/
private $correspondenceCity;
/**
* @var string
*
* @ORM\Column(name="correspondencePostalcode", type="string", length=9, nullable=true)
* @Assert\Length(max = 9)
* @JMS\Expose()
*/
private $correspondencePostalcode;
/**
* @var string
*
* @ORM\Column(type="string", length=255, nullable=true)
* @Assert\Length(max = 255)
* @JMS\Expose()
*/
private $deliveryAddressProductEmail;
/**
* @var string
*
* @ORM\Column(type="string", length=255, nullable=true)
* @Assert\Length(max = 255)
* @JMS\Expose()
*/
private $deliveryAddressProductPhoneNumber;
/**
* @var string
*
* @ORM\Column(type="string", length=50, nullable=true)
* @Assert\Length(max = 50)
* @JMS\Expose()
*/
private $deliveryAddressProductFirstName;
/**
* @var string
*
* @ORM\Column(type="string", length=50, nullable=true)
* @Assert\Length(max = 50)
* @JMS\Expose()
*/
private $deliveryAddressProductLastName;
/**
* @var string
*
* @ORM\Column(type="string", length=255, nullable=true)
* @JMS\Expose()
*/
private $deliveryAddressProductCompanyName;
/**
* @var string
*
* @ORM\Column(type="string", length=255, nullable=true)
* @JMS\Expose()
*/
private $deliveryAddressProductAddress;
/**
* @var string
*
* @ORM\Column(type="string", length=255, nullable=true)
* @JMS\Expose()
*/
private $deliveryAddressProductHouseNumber;
/**
* @var string
*
* @ORM\Column(type="string", length=255, nullable=true)
* @JMS\Expose()
*/
private $deliveryAddressProductApartmentNumber;
/**
* @var string
*
* @ORM\Column(type="string", length=100, nullable=true)
* @Assert\Length(max = 100)
* @JMS\Expose()
*/
private $deliveryAddressProductCity;
/**
* @var string
*
* @ORM\Column(type="string", length=9, nullable=true)
* @Assert\Length(max = 9)
* @JMS\Expose()
*/
private $deliveryAddressProductPostalCode;
/**
* @var bool
*
* @ORM\Column(name="publicFunding", type="boolean", nullable=true)
* @JMS\Expose()
*/
private $publicFunding;
/**
* @ORM\OneToMany(targetEntity="App\Entity\Gos\Cart", mappedBy="address")
*/
private $cart;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Gos\ClientType", inversedBy="address")
* @ORM\JoinColumn()
*/
private $clientType;
/**
* @ORM\OneToOne(targetEntity="App\Entity\Gos\User", mappedBy="address")
*/
private $user;
/**
* @ORM\OneToMany(targetEntity="App\Entity\Gos\UserTemporary", mappedBy="address")
*/
private $userTemporary;
/**
* @ORM\OneToMany(targetEntity="App\Entity\Gos\Orders", mappedBy="address")
*/
private $orders;
/**
* @ORM\Column(type="string", length=255, nullable=true, options={"default" : "buyer"})
* @JMS\Expose()
*/
private $whoPay;
/**
* @ORM\Column(type="datetime")
*/
private $createdAt;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $updatedAt;
/**
* @ORM\ManyToOne(targetEntity=Country::class, inversedBy="deliveryAddressProducts")
*/
private $deliveryAddressProductCountry;
/**
* @ORM\ManyToOne(targetEntity=Country::class, inversedBy="addresses")
*/
private $country;
/**
* @ORM\Column(type="integer", nullable=true)
* @Assert\Positive()
* @JMS\Expose()
*/
private $npwz;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @JMS\Expose()
*/
private $documentDistributionChannel;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @JMS\Expose()
*/
private $emailToSendInvoice;
/**
* @ORM\Column(type="boolean", nullable=true)
* @JMS\Expose()
*/
private $isAnotherRecipientAddress;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @JMS\Expose()
*/
private $sendInvoicePaperTo;
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @JMS\Expose()
*/
private $honorific;
/** @ORM\PrePersist() */
public function prePersist()
{
$this->createdAt = new \DateTime();
}
/** @ORM\PreUpdate() */
public function preUpdate()
{
$this->updatedAt = new \DateTime();
}
public function __clone() {
if ($this->id) {
$this->setId(null);
}
}
public function __toString()
{
if ($this->companyName){
return (string)$this->companyName;
}else{
return (string)$this->firstName;
}
}
public function hasCorrespondenceAddress()
{
if (
empty($this->correspondenceName)
|| empty($this->correspondenceAddress)
|| empty($this->correspondenceHouseNumber)
|| empty($this->correspondenceCity)
|| empty($this->correspondencePostalcode)
)
{
return false;
}
return true;
}
public function removeDeliveryAddressProduct()
{
$this
->setDeliveryAddressProductEmail(null)
->setDeliveryAddressProductPhoneNumber(null)
->setDeliveryAddressProductAddress(null)
->setDeliveryAddressProductHouseNumber(null)
->setDeliveryAddressProductApartmentNumber(null)
->setDeliveryAddressProductCity(null)
->setDeliveryAddressProductCompanyName(null)
->setDeliveryAddressProductFirstName(null)
->setDeliveryAddressProductLastName(null)
->setDeliveryAddressProductPostalCode(null);
return $this;
}
public function removeCorrespondenceAddress(): self
{
$this
->setCorrespondenceName(null)
->setCorrespondenceFirstName(null)
->setCorrespondenceLastName(null)
->setCorrespondenceAddress(null)
->setCorrespondenceHouseNumber(null)
->setCorrespondenceApartmentNumber(null)
->setCorrespondenceCity(null)
->setCorrespondencePostalcode(null);
return $this;
}
public function prepareAddressForPrivatePerson(bool $removeDeliveryAddress = true)
{
$this
->setCompanyName(null)
->setNip(null)
->setWhoPay('buyer');
if ($removeDeliveryAddress)
{
$this->removeDeliveryAddressProduct();
}
return $this;
}
public function prepareAddressForBusiness()
{
$this->setWhoPay('buyer');
// GOS-1101 // $this->removeDeliveryAddressProduct();
return $this;
}
public function hasDeliveryAddressProduct()
{
if (
empty($this->deliveryAddressProductEmail)
|| empty($this->deliveryAddressProductPhoneNumber)
|| empty($this->deliveryAddressProductFirstName)
|| empty($this->deliveryAddressProductLastName)
|| empty($this->deliveryAddressProductAddress)
|| empty($this->deliveryAddressProductHouseNumber)
|| empty($this->deliveryAddressProductPostalCode)
|| empty($this->deliveryAddressProductCity)
)
{
return false;
}
return true;
}
public function getObjectVars()
{
return get_object_vars($this);
}
/**
* Set id
*
* @return Cart
*/
public function setId($id)
{
$this->id = $id;
return $this;
}
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set companyName
*
* @param string $companyName
*
* @return Address
*/
public function setCompanyName($companyName)
{
$this->companyName = $companyName;
return $this;
}
/**
* Get companyName
*
* @return string
*/
public function getCompanyName()
{
return $this->companyName;
}
/**
* Set nip
*
* @param string $nip
*
* @return Address
*/
public function setNip($nip)
{
$this->nip = $nip;
return $this;
}
/**
* Get nip
*
* @return string
*/
public function getNip()
{
return $this->nip;
}
/**
* Set firstName
*
* @param string $firstName
*
* @return Address
*/
public function setFirstName($firstName)
{
$this->firstName = $firstName;
return $this;
}
/**
* Get firstName
*
* @return string
*/
public function getFirstName()
{
return $this->firstName;
}
/**
* Set lastName
*
* @param string $lastName
*
* @return Address
*/
public function setLastName($lastName)
{
$this->lastName = $lastName;
return $this;
}
/**
* Get lastName
*
* @return string
*/
public function getLastName()
{
return $this->lastName;
}
public function getFullName(): string
{
return trim($this->getFirstName().' '.$this->getLastName());
}
/**
* Set address
*
* @param string $address
*
* @return Address
*/
public function setAddress($address)
{
$this->address = $address;
return $this;
}
/**
* Get address
*
* @return string
*/
public function getAddress()
{
return $this->address;
}
public function getFullAddress(): string
{
return $this->getAddress().' '.$this->getHouseNumber().
( $this->getApartmentNumber() ? '/'.$this->getApartmentNumber() : '' );
}
/**
* @param $houseNumber
* @return $this
*/
public function setHouseNumber($houseNumber)
{
$this->houseNumber = $houseNumber;
return $this;
}
/**
* @return string
*/
public function getHouseNumber()
{
return $this->houseNumber;
}
public function getApartmentNumber(): ?string
{
return $this->apartmentNumber;
}
public function setApartmentNumber(?string $apartmentNumber): Address
{
$this->apartmentNumber = $apartmentNumber;
return $this;
}
/**
* Set city
*
* @param string $city
*
* @return Address
*/
public function setCity($city)
{
$this->city = $city;
return $this;
}
/**
* Get city
*
* @return string
*/
public function getCity()
{
return $this->city;
}
/**
* Set postalCode
*
* @param string $postalCode
*
* @return Address
*/
public function setPostalCode($postalCode)
{
$this->postalCode = $postalCode;
return $this;
}
/**
* Get postalCode
*
* @return string
*/
public function getPostalCode()
{
return $this->postalCode;
}
/**
* Set phone
*
* @param string $phone
*
* @return Address
*/
public function setPhone($phone)
{
$this->phone = $phone;
return $this;
}
/**
* Get phone
*
* @return string
*/
public function getPhone()
{
return $this->phone;
}
/**
* Set position
*
* @param string $position
*
* @return Address
*/
public function setPosition($position)
{
$this->position = $position;
return $this;
}
/**
* Get position
*
* @return string
*/
public function getPosition()
{
return $this->position;
}
/**
* Set correspondenceName
*
* @param string $correspondenceName
*
* @return Address
*/
public function setCorrespondenceName($correspondenceName)
{
$this->correspondenceName = $correspondenceName;
return $this;
}
/**
* Get correspondenceName
*
* @return string
*/
public function getCorrespondenceName()
{
return $this->correspondenceName;
}
/**
* Set correspondenceAddress
*
* @param string $correspondenceAddress
*
* @return Address
*/
public function setCorrespondenceAddress($correspondenceAddress)
{
$this->correspondenceAddress = $correspondenceAddress;
return $this;
}
public function getCorrespondenceFirstName(): ?string
{
return $this->correspondenceFirstName;
}
public function setCorrespondenceFirstName(?string $correspondenceFirstName): self
{
$this->correspondenceFirstName = $correspondenceFirstName;
return $this;
}
public function getCorrespondenceLastName(): ?string
{
return $this->correspondenceLastName;
}
public function getCorrespondenceFullName(): string
{
return trim($this->getCorrespondenceFirstName().' '.$this->getCorrespondenceLastName());
}
public function setCorrespondenceLastName(?string $correspondenceLastName): self
{
$this->correspondenceLastName = $correspondenceLastName;
return $this;
}
/**
* Get correspondenceAddress
*
* @return string
*/
public function getCorrespondenceAddress()
{
return $this->correspondenceAddress;
}
public function getCorrespondenceFullAddress(): string
{
return $this->getCorrespondenceAddress().' '.$this->getCorrespondenceHouseNumber().
( $this->getCorrespondenceApartmentNumber() ? '/'.$this->getCorrespondenceApartmentNumber() : '' );
}
/**
* @param $correspondenceHouseNumber
* @return $this
*/
public function setCorrespondenceHouseNumber($correspondenceHouseNumber)
{
$this->correspondenceHouseNumber = $correspondenceHouseNumber;
return $this;
}
/**
* @return string
*/
public function getCorrespondenceHouseNumber()
{
return $this->correspondenceHouseNumber;
}
public function getCorrespondenceApartmentNumber(): ?string
{
return $this->correspondenceApartmentNumber;
}
public function setCorrespondenceApartmentNumber(?string $correspondenceApartmentNumber): Address
{
$this->correspondenceApartmentNumber = $correspondenceApartmentNumber;
return $this;
}
/**
* Set correspondenceCity
*
* @param string $correspondenceCity
*
* @return Address
*/
public function setCorrespondenceCity($correspondenceCity)
{
$this->correspondenceCity = $correspondenceCity;
return $this;
}
/**
* Get correspondenceCity
*
* @return string
*/
public function getCorrespondenceCity()
{
return $this->correspondenceCity;
}
/**
* Set correspondencePostalcode
*
* @param string $correspondencePostalcode
*
* @return Address
*/
public function setCorrespondencePostalcode($correspondencePostalcode)
{
$this->correspondencePostalcode = $correspondencePostalcode;
return $this;
}
/**
* Get correspondencePostalcode
*
* @return string
*/
public function getCorrespondencePostalcode()
{
return $this->correspondencePostalcode;
}
/**
* Set publicFunding
*
* @param boolean $publicFunding
*
* @return Address
*/
public function setPublicFunding($publicFunding)
{
$this->publicFunding = $publicFunding;
return $this;
}
/**
* Get publicFunding
*
* @return bool
*/
public function getPublicFunding()
{
return $this->publicFunding;
}
/**
* Set createdAt
*
* @param \DateTime $createdAt
*
* @return Address
*/
public function setCreatedAt($createdAt)
{
$this->createdAt = $createdAt;
return $this;
}
/**
* Get createdAt
*
* @return \DateTime
*/
public function getCreatedAt()
{
return $this->createdAt;
}
/**
* Set updatedAt
*
* @param \DateTime $updatedAt
*
* @return Address
*/
public function setUpdatedAt($updatedAt)
{
$this->updatedAt = $updatedAt;
return $this;
}
/**
* Get updatedAt
*
* @return \DateTime
*/
public function getUpdatedAt()
{
return $this->updatedAt;
}
/**
* Constructor
*/
public function __construct()
{
$this->cart = new \Doctrine\Common\Collections\ArrayCollection();
$this->orders = new ArrayCollection();
$this->userTemporary = new ArrayCollection();
}
/**
* Add cart
*
* @param \App\Entity\Gos\Cart $cart
*
* @return Address
*/
public function addCart(\App\Entity\Gos\Cart $cart)
{
$this->cart[] = $cart;
return $this;
}
/**
* Remove cart
*
* @param \App\Entity\Gos\Cart $cart
*/
public function removeCart(\App\Entity\Gos\Cart $cart)
{
$this->cart->removeElement($cart);
}
/**
* Get cart
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getCart()
{
return $this->cart;
}
/**
* Set clientType
*
* @param \App\Entity\Gos\ClientType $clientType
*
* @return Address
*/
public function setClientType(\App\Entity\Gos\ClientType $clientType = null)
{
$this->clientType = $clientType;
return $this;
}
/**
* Get clientType
*
* @return \App\Entity\Gos\ClientType
*/
public function getClientType()
{
return $this->clientType;
}
public function getClientTypeSlug()
{
if ($this->clientType)
{
return $this->getClientType()->getSlug();
}
return null;
}
/**
* Set user
*
* @param \App\Entity\Gos\User $user
*
* @return Address
*/
public function setUser(\App\Entity\Gos\User $user = null)
{
$this->user = $user;
return $this;
}
/**
* Get user
*
* @return \App\Entity\Gos\User
*/
public function getUser()
{
return $this->user;
}
/**
* Set orders
*
* @param \App\Entity\Gos\Orders $orders
*
* @return Address
*/
public function setOrders(\App\Entity\Gos\Orders $orders = null)
{
$this->orders = $orders;
return $this;
}
/**
* Get orders
*
* @return \App\Entity\Gos\Orders
*/
public function getOrders()
{
return $this->orders;
}
/**
* Add order
*
* @param \App\Entity\Gos\Orders $order
*
* @return Address
*/
public function addOrder(\App\Entity\Gos\Orders $order)
{
$this->orders[] = $order;
return $this;
}
/**
* Remove order
*
* @param \App\Entity\Gos\Orders $order
*/
public function removeOrder(\App\Entity\Gos\Orders $order)
{
$this->orders->removeElement($order);
}
public function getWhoPay(): ?string
{
return $this->whoPay;
}
public function setWhoPay(?string $whoPay): self
{
$this->whoPay = $whoPay;
return $this;
}
public function getDeliveryAddressProductFirstName(): ?string
{
return $this->deliveryAddressProductFirstName;
}
public function setDeliveryAddressProductFirstName(?string $deliveryAddressProductFirstName): self
{
$this->deliveryAddressProductFirstName = $deliveryAddressProductFirstName;
return $this;
}
public function getDeliveryAddressProductLastName(): ?string
{
return $this->deliveryAddressProductLastName;
}
public function getDeliveryAddressProductFullName(): string
{
return trim($this->getDeliveryAddressProductFirstName().' '.$this->getDeliveryAddressProductLastName());
}
public function setDeliveryAddressProductLastName(?string $deliveryAddressProductLastName): self
{
$this->deliveryAddressProductLastName = $deliveryAddressProductLastName;
return $this;
}
public function getDeliveryAddressProductCompanyName(): ?string
{
return $this->deliveryAddressProductCompanyName;
}
public function setDeliveryAddressProductCompanyName(?string $deliveryAddressProductCompanyName): self
{
$this->deliveryAddressProductCompanyName = $deliveryAddressProductCompanyName;
return $this;
}
public function getDeliveryAddressProductAddress(): ?string
{
return $this->deliveryAddressProductAddress;
}
public function getDeliveryAddressProductFullAddress(): string
{
return trim(
$this->getDeliveryAddressProductAddress().' '.$this->getDeliveryAddressProductHouseNumber().
( $this->getDeliveryAddressProductApartmentNumber() ? '/'.$this->getDeliveryAddressProductApartmentNumber() : '' )
);
}
public function setDeliveryAddressProductAddress(?string $deliveryAddressProductAddress): self
{
$this->deliveryAddressProductAddress = $deliveryAddressProductAddress;
return $this;
}
/**
* @return null|string
*/
public function getDeliveryAddressProductHouseNumber(): ?string
{
return $this->deliveryAddressProductHouseNumber;
}
/**
* @param null|string $deliveryAddressProductHouseNumber
* @return Address
*/
public function setDeliveryAddressProductHouseNumber(?string $deliveryAddressProductHouseNumber): self
{
$this->deliveryAddressProductHouseNumber = $deliveryAddressProductHouseNumber;
return $this;
}
public function getDeliveryAddressProductApartmentNumber(): ?string
{
return $this->deliveryAddressProductApartmentNumber;
}
public function setDeliveryAddressProductApartmentNumber(?string $deliveryAddressProductApartmentNumber): Address
{
$this->deliveryAddressProductApartmentNumber = $deliveryAddressProductApartmentNumber;
return $this;
}
public function getDeliveryAddressProductCity(): ?string
{
return $this->deliveryAddressProductCity;
}
public function setDeliveryAddressProductCity(?string $deliveryAddressProductCity): self
{
$this->deliveryAddressProductCity = $deliveryAddressProductCity;
return $this;
}
public function getDeliveryAddressProductPostalCode(): ?string
{
return $this->deliveryAddressProductPostalCode;
}
public function setDeliveryAddressProductPostalCode(?string $deliveryAddressProductPostalCode): self
{
$this->deliveryAddressProductPostalCode = $deliveryAddressProductPostalCode;
return $this;
}
public function getUserTemporary()
{
return $this->userTemporary;
}
public function setUserTemporary(?UserTemporary $userTemporary): self
{
$this->userTemporary = $userTemporary;
// set (or unset) the owning side of the relation if necessary
$newAddress = $userTemporary === null ? null : $this;
if ($newAddress !== $userTemporary->getAddress()) {
$userTemporary->setAddress($newAddress);
}
return $this;
}
public function addUserTemporary(UserTemporary $userTemporary): self
{
if (!$this->userTemporary->contains($userTemporary)) {
$this->userTemporary[] = $userTemporary;
$userTemporary->setAddress($this);
}
return $this;
}
public function removeUserTemporary(UserTemporary $userTemporary): self
{
if ($this->userTemporary->contains($userTemporary)) {
$this->userTemporary->removeElement($userTemporary);
// set the owning side to null (unless already changed)
if ($userTemporary->getAddress() === $this) {
$userTemporary->setAddress(null);
}
}
return $this;
}
public function getDeliveryAddressProductCountry(): ?Country
{
return $this->deliveryAddressProductCountry;
}
public function setDeliveryAddressProductCountry(?Country $deliveryAddressProductCountry): self
{
$this->deliveryAddressProductCountry = $deliveryAddressProductCountry;
return $this;
}
public function getCountry(): ?Country
{
return $this->country;
}
public function setCountry(?Country $country): self
{
$this->country = $country;
return $this;
}
public function getNpwz(): ?int
{
return $this->npwz;
}
public function setNpwz(?int $npwz): self
{
$this->npwz = $npwz;
return $this;
}
public function getDocumentDistributionChannel(): ?string
{
return $this->documentDistributionChannel;
}
public function setDocumentDistributionChannel(?string $documentDistributionChannel): self
{
$this->documentDistributionChannel = $documentDistributionChannel;
return $this;
}
public function getEmailToSendInvoice(): ?string
{
return $this->emailToSendInvoice;
}
public function setEmailToSendInvoice(?string $emailToSendInvoice): self
{
$this->emailToSendInvoice = $emailToSendInvoice;
return $this;
}
public function getIsAnotherRecipientAddress(): ?bool
{
return $this->isAnotherRecipientAddress;
}
public function setIsAnotherRecipientAddress(?bool $isAnotherRecipientAddress): self
{
$this->isAnotherRecipientAddress = $isAnotherRecipientAddress;
return $this;
}
public function getSendInvoicePaperTo(): ?string
{
return $this->sendInvoicePaperTo;
}
public function setSendInvoicePaperTo(?string $sendInvoiceTo): self
{
$this->sendInvoicePaperTo = $sendInvoiceTo;
return $this;
}
public function getHonorific(): ?string
{
return $this->honorific;
}
public function setHonorific(?string $honorific): self
{
$this->honorific = $honorific;
return $this;
}
public function getDeliveryAddressProductEmail(): ?string
{
return $this->deliveryAddressProductEmail;
}
public function setDeliveryAddressProductEmail(?string $deliveryAddressProductEmail): self
{
$this->deliveryAddressProductEmail = $deliveryAddressProductEmail;
return $this;
}
public function getDeliveryAddressProductPhoneNumber(): ?string
{
return $this->deliveryAddressProductPhoneNumber;
}
public function setDeliveryAddressProductPhoneNumber(?string $deliveryAddressProductPhoneNumber): self
{
$this->deliveryAddressProductPhoneNumber = $deliveryAddressProductPhoneNumber;
return $this;
}
}