src/Entity/System/Supplier.php line 18

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