src/Entity/System/Supplier.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Supplier
  6.  *
  7.  * @ORM\Table(name="ps_plazo_aprovisionamiento_proveedor")
  8.  *
  9.  * @ORM\Entity(repositoryClass="App\Repository\System\SupplierRepository")
  10.  */
  11. class Supplier
  12. {
  13.     public const PREPARATION_CUT_TIME_SUBSTRACT_MINUTES 60;
  14.     public const MAX_CANCELLATION_TIME_SUBSTRACT_MINUTES 90;
  15.     public const INNOVAGOODS_ID 151309;
  16.     /**
  17.      * @var int
  18.      *
  19.      * @ORM\Column(name="id_plazo_aprovisionamiento_proveedor", type="integer")
  20.      *
  21.      * @ORM\Id
  22.      */
  23.     private $id;
  24.     /**
  25.      * @var string|null
  26.      *
  27.      * @ORM\Column(type="string" , length=100, nullable=true)
  28.      */
  29.     private $name;
  30.     /**
  31.      * @var int|null
  32.      *
  33.      * @ORM\Column(type="integer" , name="tiempo_min",  nullable=true)
  34.      */
  35.     private $minimumTime;
  36.     /**
  37.      * @var int|null
  38.      *
  39.      * @ORM\Column(type="integer" , name="tiempo_max", nullable=true)
  40.      */
  41.     private $maximumTime;
  42.     /**
  43.      * @var bool|null
  44.      *
  45.      * @ORM\Column(type="boolean", nullable=true)
  46.      */
  47.     private $sincronized;
  48.     /**
  49.      * @var bool|null
  50.      *
  51.      * @ORM\Column(type="boolean", nullable=true)
  52.      */
  53.     private $onlyPack;
  54.     /**
  55.      * @var bool|null
  56.      *
  57.      * @ORM\Column(type="boolean", nullable=true)
  58.      */
  59.     private $notDiscounts;
  60.     /**
  61.      * @var string|null
  62.      *
  63.      * @ORM\Column(type="string" , length=255, nullable=true)
  64.      */
  65.     private $sendOrderUrl;
  66.     /**
  67.      * @var bool|null
  68.      *
  69.      * @ORM\Column(type="boolean", name="avisame", columnDefinition="tinyint(1)", options={"default" : 0}, nullable=true)
  70.      */
  71.     private $letMeKnow;
  72.     /**
  73.      * @var int|null
  74.      *
  75.      * @ORM\Column(type="integer", name="destacados", length=11, options={"default" : 0}, nullable=true)
  76.      */
  77.     private $highlights;
  78.     /**
  79.      * @var int
  80.      *
  81.      * @ORM\Column(type="integer", name="stock_seguridad", length=11, options={"default" : 0})
  82.      */
  83.     private $securityStock;
  84.     /**
  85.      * @var string|null
  86.      *
  87.      * @ORM\Column(type="string", name="hora_maxima_cancelacion", length=10, nullable=true)
  88.      */
  89.     private $maximumCancellationTime;
  90.     /**
  91.      * @var int|null
  92.      *
  93.      * @ORM\Column(type="integer", name="envio24_48", length=1, options={"default" : 0}, nullable=true)
  94.      */
  95.     private $shipping24_48;
  96.     /**
  97.      * @var int|null
  98.      *
  99.      * @ORM\Column(type="integer", length=1, options={"default" : 0}, nullable=true)
  100.      */
  101.     private $showExtern;
  102.     /**
  103.      * @var int
  104.      *
  105.      * @ORM\Column(type="integer", length=5, options={"default" : 0})
  106.      */
  107.     private $delay;
  108.     /**
  109.      * @var int|null
  110.      *
  111.      * @ORM\Column(type="integer", length=11, options={"default" : 0}, nullable=true)
  112.      */
  113.     private $expeditionDays;
  114.     /**
  115.      * @var string|null
  116.      *
  117.      * @ORM\Column(type="string", length=10, options={"default" : "12:00:00"}, nullable=true)
  118.      */
  119.     private $expeditionMessageTime;
  120.     /**
  121.      * @var bool|null
  122.      *
  123.      * @ORM\Column(type="boolean", options={"default" : 0}, nullable=true)
  124.      */
  125.     private $forceStockExtern;
  126.     /**
  127.      * @var int
  128.      *
  129.      * @ORM\Column(type="integer", name="expedition_days_3_5", length=11)
  130.      */
  131.     private $expeditionDays3To5;
  132.     /**
  133.      * @var bool|null
  134.      *
  135.      * @ORM\Column(type="boolean", options={"default" : 0}, nullable=true)
  136.      */
  137.     private $commissionType;
  138.     /**
  139.      * @return int
  140.      */
  141.     public function getId(): int
  142.     {
  143.         return $this->id;
  144.     }
  145.     /**
  146.      * @param int $id
  147.      *
  148.      * @return Supplier
  149.      */
  150.     public function setId(int $id): Supplier
  151.     {
  152.         $this->id $id;
  153.         return $this;
  154.     }
  155.     /**
  156.      * @return string|null
  157.      */
  158.     public function getName(): ?string
  159.     {
  160.         return $this->name;
  161.     }
  162.     /**
  163.      * @param string|null $name
  164.      *
  165.      * @return Supplier
  166.      */
  167.     public function setName(?string $name): Supplier
  168.     {
  169.         $this->name $name;
  170.         return $this;
  171.     }
  172.     /**
  173.      * @return int|null
  174.      */
  175.     public function getMinimumTime(): ?int
  176.     {
  177.         return $this->minimumTime;
  178.     }
  179.     /**
  180.      * @param int|null $minimumTime
  181.      *
  182.      * @return Supplier
  183.      */
  184.     public function setMinimumTime(?int $minimumTime): Supplier
  185.     {
  186.         $this->minimumTime $minimumTime;
  187.         return $this;
  188.     }
  189.     /**
  190.      * @return int|null
  191.      */
  192.     public function getMaximumTime(): ?int
  193.     {
  194.         return $this->maximumTime;
  195.     }
  196.     /**
  197.      * @param int|null $maximumTime
  198.      *
  199.      * @return Supplier
  200.      */
  201.     public function setMaximumTime(?int $maximumTime): Supplier
  202.     {
  203.         $this->maximumTime $maximumTime;
  204.         return $this;
  205.     }
  206.     /**
  207.      * @return bool|null
  208.      */
  209.     public function getSincronized(): ?bool
  210.     {
  211.         return $this->sincronized;
  212.     }
  213.     /**
  214.      * @param bool|null $sincronized
  215.      *
  216.      * @return Supplier
  217.      */
  218.     public function setSincronized(?bool $sincronized): Supplier
  219.     {
  220.         $this->sincronized $sincronized;
  221.         return $this;
  222.     }
  223.     /**
  224.      * @return bool|null
  225.      */
  226.     public function getOnlyPack(): ?bool
  227.     {
  228.         return $this->onlyPack;
  229.     }
  230.     /**
  231.      * @param bool|null $onlyPack
  232.      *
  233.      * @return Supplier
  234.      */
  235.     public function setOnlyPack(?bool $onlyPack): Supplier
  236.     {
  237.         $this->onlyPack $onlyPack;
  238.         return $this;
  239.     }
  240.     /**
  241.      * @return bool|null
  242.      */
  243.     public function getNotDiscounts(): ?bool
  244.     {
  245.         return $this->notDiscounts;
  246.     }
  247.     /**
  248.      * @param bool|null $notDiscounts
  249.      *
  250.      * @return Supplier
  251.      */
  252.     public function setNotDiscounts(?bool $notDiscounts): Supplier
  253.     {
  254.         $this->notDiscounts $notDiscounts;
  255.         return $this;
  256.     }
  257.     /**
  258.      * @return string|null
  259.      */
  260.     public function getSendOrderUrl(): ?string
  261.     {
  262.         return $this->sendOrderUrl;
  263.     }
  264.     /**
  265.      * @param string|null $sendOrderUrl
  266.      *
  267.      * @return Supplier
  268.      */
  269.     public function setSendOrderUrl(?string $sendOrderUrl): Supplier
  270.     {
  271.         $this->sendOrderUrl $sendOrderUrl;
  272.         return $this;
  273.     }
  274.     /**
  275.      * @return bool|null
  276.      */
  277.     public function getLetMeKnow(): ?bool
  278.     {
  279.         return $this->letMeKnow;
  280.     }
  281.     /**
  282.      * @param bool|null $letMeKnow
  283.      *
  284.      * @return Supplier
  285.      */
  286.     public function setLetMeKnow(?bool $letMeKnow): Supplier
  287.     {
  288.         $this->letMeKnow $letMeKnow;
  289.         return $this;
  290.     }
  291.     /**
  292.      * @return int|null
  293.      */
  294.     public function getHighlights(): ?int
  295.     {
  296.         return $this->highlights;
  297.     }
  298.     /**
  299.      * @param int|null $highlights
  300.      *
  301.      * @return Supplier
  302.      */
  303.     public function setHighlights(?int $highlights): Supplier
  304.     {
  305.         $this->highlights $highlights;
  306.         return $this;
  307.     }
  308.     /**
  309.      * @return int
  310.      */
  311.     public function getSecurityStock(): int
  312.     {
  313.         return $this->securityStock;
  314.     }
  315.     /**
  316.      * @param int $securityStock
  317.      *
  318.      * @return Supplier
  319.      */
  320.     public function setSecurityStock(int $securityStock): Supplier
  321.     {
  322.         $this->securityStock $securityStock;
  323.         return $this;
  324.     }
  325.     /**
  326.      * @return string|null
  327.      */
  328.     public function getMaximumCancellationTime(): ?string
  329.     {
  330.         return $this->maximumCancellationTime;
  331.     }
  332.     /**
  333.      * @param string|null $maximumCancellationTime
  334.      *
  335.      * @return Supplier
  336.      */
  337.     public function setMaximumCancellationTime(?string $maximumCancellationTime): Supplier
  338.     {
  339.         $this->maximumCancellationTime $maximumCancellationTime;
  340.         return $this;
  341.     }
  342.     /**
  343.      * @return int|null
  344.      */
  345.     public function getShipping2448(): ?int
  346.     {
  347.         return $this->shipping24_48;
  348.     }
  349.     /**
  350.      * @param int|null $shipping24_48
  351.      *
  352.      * @return Supplier
  353.      */
  354.     public function setShipping2448(?int $shipping24_48): Supplier
  355.     {
  356.         $this->shipping24_48 $shipping24_48;
  357.         return $this;
  358.     }
  359.     /**
  360.      * @return int|null
  361.      */
  362.     public function getShowExtern(): ?int
  363.     {
  364.         return $this->showExtern;
  365.     }
  366.     /**
  367.      * @param int|null $showExtern
  368.      *
  369.      * @return Supplier
  370.      */
  371.     public function setShowExtern(?int $showExtern): Supplier
  372.     {
  373.         $this->showExtern $showExtern;
  374.         return $this;
  375.     }
  376.     /**
  377.      * @return int
  378.      */
  379.     public function getDelay(): int
  380.     {
  381.         return $this->delay;
  382.     }
  383.     /**
  384.      * @param int $delay
  385.      *
  386.      * @return Supplier
  387.      */
  388.     public function setDelay(int $delay): Supplier
  389.     {
  390.         $this->delay $delay;
  391.         return $this;
  392.     }
  393.     /**
  394.      * @return int|null
  395.      */
  396.     public function getExpeditionDays(): ?int
  397.     {
  398.         return $this->expeditionDays;
  399.     }
  400.     /**
  401.      * @param int|null $expeditionDays
  402.      *
  403.      * @return Supplier
  404.      */
  405.     public function setExpeditionDays(?int $expeditionDays): Supplier
  406.     {
  407.         $this->expeditionDays $expeditionDays;
  408.         return $this;
  409.     }
  410.     /**
  411.      * @return string|null
  412.      */
  413.     public function getExpeditionMessageTime(): ?string
  414.     {
  415.         return $this->expeditionMessageTime;
  416.     }
  417.     /**
  418.      * @param string|null $expeditionMessageTime
  419.      *
  420.      * @return Supplier
  421.      */
  422.     public function setExpeditionMessageTime(?string $expeditionMessageTime): Supplier
  423.     {
  424.         $this->expeditionMessageTime $expeditionMessageTime;
  425.         return $this;
  426.     }
  427.     /**
  428.      * @return bool|null
  429.      */
  430.     public function isForceStockExtern(): ?bool
  431.     {
  432.         return $this->forceStockExtern;
  433.     }
  434.     /**
  435.      * @param bool|null $forceStockExtern
  436.      *
  437.      * @return Supplier
  438.      */
  439.     public function setForceStockExtern(?bool $forceStockExtern): Supplier
  440.     {
  441.         $this->forceStockExtern $forceStockExtern;
  442.         return $this;
  443.     }
  444.     public function getExpeditionDays3To5(): int
  445.     {
  446.         return $this->expeditionDays3To5;
  447.     }
  448.     public function setExpeditionDays3To5(int $expeditionDays3To5): Supplier
  449.     {
  450.         $this->expeditionDays3To5 $expeditionDays3To5;
  451.         return $this;
  452.     }
  453.     public function getCommissionType(): ?bool
  454.     {
  455.         return $this->commissionType;
  456.     }
  457.     public function setCommissionType(?bool $commissionType): Supplier
  458.     {
  459.         $this->commissionType $commissionType;
  460.         return $this;
  461.     }
  462. }