<?php
namespace App\Entity\System;
use Doctrine\ORM\Mapping as ORM;
/**
* Supplier
*
* @ORM\Table(name="ps_plazo_aprovisionamiento_proveedor")
*
* @ORM\Entity(repositoryClass="App\Repository\System\SupplierRepository")
*/
class Supplier
{
public const PREPARATION_CUT_TIME_SUBSTRACT_MINUTES = 60;
public const MAX_CANCELLATION_TIME_SUBSTRACT_MINUTES = 90;
public const INNOVAGOODS_ID = 151309;
/**
* @var int
*
* @ORM\Column(name="id_plazo_aprovisionamiento_proveedor", type="integer")
*
* @ORM\Id
*/
private $id;
/**
* @var string|null
*
* @ORM\Column(type="string" , length=100, nullable=true)
*/
private $name;
/**
* @var int|null
*
* @ORM\Column(type="integer" , name="tiempo_min", nullable=true)
*/
private $minimumTime;
/**
* @var int|null
*
* @ORM\Column(type="integer" , name="tiempo_max", nullable=true)
*/
private $maximumTime;
/**
* @var bool|null
*
* @ORM\Column(type="boolean", nullable=true)
*/
private $sincronized;
/**
* @var bool|null
*
* @ORM\Column(type="boolean", nullable=true)
*/
private $onlyPack;
/**
* @var bool|null
*
* @ORM\Column(type="boolean", nullable=true)
*/
private $notDiscounts;
/**
* @var string|null
*
* @ORM\Column(type="string" , length=255, nullable=true)
*/
private $sendOrderUrl;
/**
* @var bool|null
*
* @ORM\Column(type="boolean", name="avisame", columnDefinition="tinyint(1)", options={"default" : 0}, nullable=true)
*/
private $letMeKnow;
/**
* @var int|null
*
* @ORM\Column(type="integer", name="destacados", length=11, options={"default" : 0}, nullable=true)
*/
private $highlights;
/**
* @var int
*
* @ORM\Column(type="integer", name="stock_seguridad", length=11, options={"default" : 0})
*/
private $securityStock;
/**
* @var string|null
*
* @ORM\Column(type="string", name="hora_maxima_cancelacion", length=10, nullable=true)
*/
private $maximumCancellationTime;
/**
* @var int|null
*
* @ORM\Column(type="integer", name="envio24_48", length=1, options={"default" : 0}, nullable=true)
*/
private $shipping24_48;
/**
* @var int|null
*
* @ORM\Column(type="integer", length=1, options={"default" : 0}, nullable=true)
*/
private $showExtern;
/**
* @var int
*
* @ORM\Column(type="integer", length=5, options={"default" : 0})
*/
private $delay;
/**
* @var int|null
*
* @ORM\Column(type="integer", length=11, options={"default" : 0}, nullable=true)
*/
private $expeditionDays;
/**
* @var string|null
*
* @ORM\Column(type="string", length=10, options={"default" : "12:00:00"}, nullable=true)
*/
private $expeditionMessageTime;
/**
* @var bool|null
*
* @ORM\Column(type="boolean", options={"default" : 0}, nullable=true)
*/
private $forceStockExtern;
/**
* @var int
*
* @ORM\Column(type="integer", name="expedition_days_3_5", length=11)
*/
private $expeditionDays3To5;
/**
* @var bool|null
*
* @ORM\Column(type="boolean", options={"default" : 0}, nullable=true)
*/
private $commissionType;
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
/**
* @param int $id
*
* @return Supplier
*/
public function setId(int $id): Supplier
{
$this->id = $id;
return $this;
}
/**
* @return string|null
*/
public function getName(): ?string
{
return $this->name;
}
/**
* @param string|null $name
*
* @return Supplier
*/
public function setName(?string $name): Supplier
{
$this->name = $name;
return $this;
}
/**
* @return int|null
*/
public function getMinimumTime(): ?int
{
return $this->minimumTime;
}
/**
* @param int|null $minimumTime
*
* @return Supplier
*/
public function setMinimumTime(?int $minimumTime): Supplier
{
$this->minimumTime = $minimumTime;
return $this;
}
/**
* @return int|null
*/
public function getMaximumTime(): ?int
{
return $this->maximumTime;
}
/**
* @param int|null $maximumTime
*
* @return Supplier
*/
public function setMaximumTime(?int $maximumTime): Supplier
{
$this->maximumTime = $maximumTime;
return $this;
}
/**
* @return bool|null
*/
public function getSincronized(): ?bool
{
return $this->sincronized;
}
/**
* @param bool|null $sincronized
*
* @return Supplier
*/
public function setSincronized(?bool $sincronized): Supplier
{
$this->sincronized = $sincronized;
return $this;
}
/**
* @return bool|null
*/
public function getOnlyPack(): ?bool
{
return $this->onlyPack;
}
/**
* @param bool|null $onlyPack
*
* @return Supplier
*/
public function setOnlyPack(?bool $onlyPack): Supplier
{
$this->onlyPack = $onlyPack;
return $this;
}
/**
* @return bool|null
*/
public function getNotDiscounts(): ?bool
{
return $this->notDiscounts;
}
/**
* @param bool|null $notDiscounts
*
* @return Supplier
*/
public function setNotDiscounts(?bool $notDiscounts): Supplier
{
$this->notDiscounts = $notDiscounts;
return $this;
}
/**
* @return string|null
*/
public function getSendOrderUrl(): ?string
{
return $this->sendOrderUrl;
}
/**
* @param string|null $sendOrderUrl
*
* @return Supplier
*/
public function setSendOrderUrl(?string $sendOrderUrl): Supplier
{
$this->sendOrderUrl = $sendOrderUrl;
return $this;
}
/**
* @return bool|null
*/
public function getLetMeKnow(): ?bool
{
return $this->letMeKnow;
}
/**
* @param bool|null $letMeKnow
*
* @return Supplier
*/
public function setLetMeKnow(?bool $letMeKnow): Supplier
{
$this->letMeKnow = $letMeKnow;
return $this;
}
/**
* @return int|null
*/
public function getHighlights(): ?int
{
return $this->highlights;
}
/**
* @param int|null $highlights
*
* @return Supplier
*/
public function setHighlights(?int $highlights): Supplier
{
$this->highlights = $highlights;
return $this;
}
/**
* @return int
*/
public function getSecurityStock(): int
{
return $this->securityStock;
}
/**
* @param int $securityStock
*
* @return Supplier
*/
public function setSecurityStock(int $securityStock): Supplier
{
$this->securityStock = $securityStock;
return $this;
}
/**
* @return string|null
*/
public function getMaximumCancellationTime(): ?string
{
return $this->maximumCancellationTime;
}
/**
* @param string|null $maximumCancellationTime
*
* @return Supplier
*/
public function setMaximumCancellationTime(?string $maximumCancellationTime): Supplier
{
$this->maximumCancellationTime = $maximumCancellationTime;
return $this;
}
/**
* @return int|null
*/
public function getShipping2448(): ?int
{
return $this->shipping24_48;
}
/**
* @param int|null $shipping24_48
*
* @return Supplier
*/
public function setShipping2448(?int $shipping24_48): Supplier
{
$this->shipping24_48 = $shipping24_48;
return $this;
}
/**
* @return int|null
*/
public function getShowExtern(): ?int
{
return $this->showExtern;
}
/**
* @param int|null $showExtern
*
* @return Supplier
*/
public function setShowExtern(?int $showExtern): Supplier
{
$this->showExtern = $showExtern;
return $this;
}
/**
* @return int
*/
public function getDelay(): int
{
return $this->delay;
}
/**
* @param int $delay
*
* @return Supplier
*/
public function setDelay(int $delay): Supplier
{
$this->delay = $delay;
return $this;
}
/**
* @return int|null
*/
public function getExpeditionDays(): ?int
{
return $this->expeditionDays;
}
/**
* @param int|null $expeditionDays
*
* @return Supplier
*/
public function setExpeditionDays(?int $expeditionDays): Supplier
{
$this->expeditionDays = $expeditionDays;
return $this;
}
/**
* @return string|null
*/
public function getExpeditionMessageTime(): ?string
{
return $this->expeditionMessageTime;
}
/**
* @param string|null $expeditionMessageTime
*
* @return Supplier
*/
public function setExpeditionMessageTime(?string $expeditionMessageTime): Supplier
{
$this->expeditionMessageTime = $expeditionMessageTime;
return $this;
}
/**
* @return bool|null
*/
public function isForceStockExtern(): ?bool
{
return $this->forceStockExtern;
}
/**
* @param bool|null $forceStockExtern
*
* @return Supplier
*/
public function setForceStockExtern(?bool $forceStockExtern): Supplier
{
$this->forceStockExtern = $forceStockExtern;
return $this;
}
public function getExpeditionDays3To5(): int
{
return $this->expeditionDays3To5;
}
public function setExpeditionDays3To5(int $expeditionDays3To5): Supplier
{
$this->expeditionDays3To5 = $expeditionDays3To5;
return $this;
}
public function getCommissionType(): ?bool
{
return $this->commissionType;
}
public function setCommissionType(?bool $commissionType): Supplier
{
$this->commissionType = $commissionType;
return $this;
}
}