- <?php
-
- namespace Lc\ShopBundle\Model;
-
- use App\Entity\Visitor;
- use Doctrine\Common\Collections\ArrayCollection;
- use Doctrine\Common\Collections\Collection;
- use Doctrine\ORM\Mapping as ORM;
- use Lc\ShopBundle\Context\FilterMerchantInterface;
-
-
- abstract class OrderShop implements FilterMerchantInterface
- {
-
-
-
- protected $merchant;
-
-
-
- protected $user;
-
-
-
- protected $visitor;
-
-
-
- protected $invoiceAddress;
-
-
-
- protected $comment;
-
-
-
- protected $autoPayment;
-
-
-
- protected $meanPayment;
-
-
-
- protected $tillerSynchronisation;
-
-
-
- protected $orderStatusHistories;
-
-
-
- protected $orderProducts;
-
-
-
- protected $creditHistories;
-
-
-
- protected $documentInvoice;
-
-
-
- protected $documentQuotation;
-
-
-
- protected $documentDeliveryNote;
-
- public function __construct()
- {
- $this->orderStatusHistories = new ArrayCollection();
- $this->orderProducts = new ArrayCollection();
- $this->creditHistories = new ArrayCollection();
- }
-
- public function getMerchant(): ?Merchant
- {
- return $this->merchant;
- }
-
- public function setMerchant(?Merchant $merchant): self
- {
- $this->merchant = $merchant;
-
- return $this;
- }
-
- public function getUser(): ?User
- {
- return $this->user;
- }
-
- public function setUser(?User $user): self
- {
- $this->user = $user;
-
- return $this;
- }
-
- public function getInvoiceAddress(): ?Address
- {
- return $this->invoiceAddress;
- }
-
- public function setInvoiceAddress(?Address $invoiceAddress): self
- {
- $this->invoiceAddress = $invoiceAddress;
-
- return $this;
- }
-
- public function getComment(): ?string
- {
- return $this->comment;
- }
-
- public function setComment(?string $comment): self
- {
- $this->comment = $comment;
-
- return $this;
- }
-
- public function getAutoPayment(): ?bool
- {
- return $this->autoPayment;
- }
-
- public function setAutoPayment(bool $autoPayment): self
- {
- $this->autoPayment = $autoPayment;
-
- return $this;
- }
-
- public function getMeanPayment(): ?string
- {
- return $this->meanPayment;
- }
-
- public function setMeanPayment(string $meanPayment): self
- {
- $this->meanPayment = $meanPayment;
-
- return $this;
- }
-
-
-
- public function getOrderStatusHistories(): Collection
- {
- return $this->orderStatusHistories;
- }
-
- public function addOrderStatusHistory(OrderStatusHistory $orderStatusHistory): self
- {
- if (!$this->orderStatusHistories->contains($orderStatusHistory)) {
- $this->orderStatusHistories[] = $orderStatusHistory;
- $orderStatusHistory->setOrderShop($this);
- }
-
- return $this;
- }
-
- public function removeOrderStatusHistory(OrderStatusHistory $orderStatusHistory): self
- {
- if ($this->orderStatusHistories->contains($orderStatusHistory)) {
- $this->orderStatusHistories->removeElement($orderStatusHistory);
-
- if ($orderStatusHistory->getOrderShop() === $this) {
- $orderStatusHistory->setOrderShop(null);
- }
- }
-
- return $this;
- }
-
-
-
- public function getOrderProducts(): Collection
- {
- return $this->orderProducts;
- }
-
- public function addOrderProduct(OrderProduct $orderProduct): self
- {
- if (!$this->orderProducts->contains($orderProduct)) {
- $this->orderProducts[] = $orderProduct;
- $orderProduct->setOrderShop($this);
- }
-
- return $this;
- }
-
- public function removeOrderProduct(OrderProduct $orderProduct): self
- {
- if ($this->orderProducts->contains($orderProduct)) {
- $this->orderProducts->removeElement($orderProduct);
-
- if ($orderProduct->getOrderShop() === $this) {
- $orderProduct->setOrderShop(null);
- }
- }
-
- return $this;
- }
-
-
-
- public function getCreditHistories(): Collection
- {
- return $this->creditHistories;
- }
-
- public function addCreditHistory(CreditHistory $creditHistory): self
- {
- if (!$this->creditHistories->contains($creditHistory)) {
- $this->creditHistories[] = $creditHistory;
- $creditHistory->setOrderShop($this);
- }
-
- return $this;
- }
-
- public function removeCreditHistory(CreditHistory $creditHistory): self
- {
- if ($this->creditHistories->contains($creditHistory)) {
- $this->creditHistories->removeElement($creditHistory);
-
- if ($creditHistory->getOrderShop() === $this) {
- $creditHistory->setOrderShop(null);
- }
- }
-
- return $this;
- }
-
- public function getDocumentInvoice(): ?DocumentInvoice
- {
- return $this->documentInvoice;
- }
-
- public function setDocumentInvoice(?DocumentInvoice $documentInvoice): self
- {
- $this->documentInvoice = $documentInvoice;
-
- return $this;
- }
-
- public function getDocumentQuotation(): ?DocumentQuotation
- {
- return $this->documentQuotation;
- }
-
- public function setDocumentQuotation(?DocumentQuotation $documentQuotation): self
- {
- $this->documentQuotation = $documentQuotation;
-
- return $this;
- }
-
- public function getDocumentDeliveryNote(): ?DocumentDeliveryNote
- {
- return $this->documentDeliveryNote;
- }
-
- public function setDocumentDeliveryNote(?DocumentDeliveryNote $documentDeliveryNote): self
- {
- $this->documentDeliveryNote = $documentDeliveryNote;
-
- return $this;
- }
-
- public function getVisitor(): ?Visitor
- {
- return $this->visitor;
- }
-
- public function setVisitor(?Visitor $visitor): self
- {
- $this->visitor = $visitor;
-
- return $this;
- }
- }
|