src/Entity/GeneralConfig.php line 17

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\GeneralConfig\AttentionDay;
  4. use App\Entity\Price\Range;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\ORM\Mapping as ORM;
  8. /**
  9.  * GeneralConfig
  10.  *
  11.  * @ORM\Table(name="general_config") *
  12.  * @ORM\Entity()
  13.  */
  14. class GeneralConfig
  15. {
  16.     /**
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue
  19.      * @ORM\Column(type="integer")
  20.      */
  21.     private $id;
  22.     /**
  23.      * @ORM\Column(name="ena_point_limit",type="integer")
  24.      */
  25.     private $enaPointLimit;
  26.     /**
  27.      * @ORM\Column(name="ena_weight_limit",type="float")
  28.      */
  29.     private $enaWeightLimit;
  30.     /**
  31.      * @ORM\Column(name="ena_maximum_quantity", type="integer")
  32.      */
  33.     private $enaMaximumQuantity;
  34.     /**
  35.      * @ORM\Column(name="shipping_point_limit", type="integer")
  36.      */
  37.     private $shippingPointLimit;
  38.     /**
  39.      * @ORM\Column(name="shipping_weight_limit", type="float")
  40.      */
  41.     private $shippingWeightLimit;
  42.     /**
  43.      * @ORM\Column(name="shipping_maximum_quantity", type="integer")
  44.      */
  45.     private $shippingMaximumQuantity;
  46.     /**
  47.      * @ORM\Column(type="integer")
  48.      */
  49.     private $workstationCount;
  50.     /**
  51.      * @ORM\Column(type="integer")
  52.      */
  53.     private $enaReceptionTime;
  54.     /**
  55.      * @ORM\Column(type="integer")
  56.      */
  57.     private $shippingReceptionTime;
  58.     /**
  59.      * @ORM\Column(type="string", length=255)
  60.      */
  61.     private $iataCode;
  62.     /**
  63.      * @ORM\OneToMany(targetEntity=Range::class, mappedBy="config", cascade={"persist", "remove"})
  64.      */
  65.     private $ranges;
  66.     /**
  67.      * @ORM\Column(type="float")
  68.      */
  69.     private $shippingBasePrice;
  70.     /**
  71.      * @ORM\Column(type="string", length=255)
  72.      */
  73.     private $houseNumberPrefix;
  74.     public function __construct()
  75.     {
  76.         $this->ranges = new ArrayCollection();
  77.     }
  78.     public function getId(): ?int
  79.     {
  80.         return $this->id;
  81.     }
  82.     public function getEnaPointLimit(): ?int
  83.     {
  84.         return $this->enaPointLimit;
  85.     }
  86.     public function setEnaPointLimit(int $enaPointLimit): self
  87.     {
  88.         $this->enaPointLimit $enaPointLimit;
  89.         return $this;
  90.     }
  91.     public function getEnaWeightLimit(): ?float
  92.     {
  93.         return $this->enaWeightLimit;
  94.     }
  95.     public function setEnaWeightLimit(float $enaWeightLimit): self
  96.     {
  97.         $this->enaWeightLimit $enaWeightLimit;
  98.         return $this;
  99.     }
  100.     public function getEnaMaximumQuantity(): ?int
  101.     {
  102.         return $this->enaMaximumQuantity;
  103.     }
  104.     public function setEnaMaximumQuantity(int $enaMaximumQuantity): self
  105.     {
  106.         $this->enaMaximumQuantity $enaMaximumQuantity;
  107.         return $this;
  108.     }
  109.     public function getShippingPointLimit(): ?int
  110.     {
  111.         return $this->shippingPointLimit;
  112.     }
  113.     public function setShippingPointLimit(int $shippingPointLimit): self
  114.     {
  115.         $this->shippingPointLimit $shippingPointLimit;
  116.         return $this;
  117.     }
  118.     public function getShippingWeightLimit(): ?float
  119.     {
  120.         return $this->shippingWeightLimit;
  121.     }
  122.     public function setShippingWeightLimit(float $shippingWeightLimit): self
  123.     {
  124.         $this->shippingWeightLimit $shippingWeightLimit;
  125.         return $this;
  126.     }
  127.     public function getShippingMaximumQuantity(): ?int
  128.     {
  129.         return $this->shippingMaximumQuantity;
  130.     }
  131.     public function setShippingMaximumQuantity(int $shippingMaximumQuantity): self
  132.     {
  133.         $this->shippingMaximumQuantity $shippingMaximumQuantity;
  134.         return $this;
  135.     }
  136.     public function getWorkstationCount(): ?int
  137.     {
  138.         return $this->workstationCount;
  139.     }
  140.     public function setWorkstationCount(int $workstationCount): self
  141.     {
  142.         $this->workstationCount $workstationCount;
  143.         return $this;
  144.     }
  145.     public function getEnaReceptionTime(): ?int
  146.     {
  147.         return $this->enaReceptionTime;
  148.     }
  149.     public function setEnaReceptionTime(int $enaReceptionTime): self
  150.     {
  151.         $this->enaReceptionTime $enaReceptionTime;
  152.         return $this;
  153.     }
  154.     public function getShippingReceptionTime(): ?int
  155.     {
  156.         return $this->shippingReceptionTime;
  157.     }
  158.     public function setShippingReceptionTime(int $shippingReceptionTime): self
  159.     {
  160.         $this->shippingReceptionTime $shippingReceptionTime;
  161.         return $this;
  162.     }
  163.     public function getIataCode(): ?string
  164.     {
  165.         return $this->iataCode;
  166.     }
  167.     public function setIataCode(string $iataCode): self
  168.     {
  169.         $this->iataCode $iataCode;
  170.         return $this;
  171.     }
  172.     /**
  173.      * @return Collection<int, Range>
  174.      */
  175.     public function getRanges(): Collection
  176.     {
  177.         return $this->ranges;
  178.     }
  179.     public function addRange(Range $range): self
  180.     {
  181.         if (!$this->ranges->contains($range)) {
  182.             $this->ranges[] = $range;
  183.             $range->setConfig($this);
  184.         }
  185.         return $this;
  186.     }
  187.     public function removeRange(Range $range): self
  188.     {
  189.         if ($this->ranges->removeElement($range)) {
  190.             // set the owning side to null (unless already changed)
  191.             if ($range->getConfig() === $this) {
  192.                 $range->setConfig(null);
  193.             }
  194.         }
  195.         return $this;
  196.     }
  197.     public function getShippingBasePrice(): ?float
  198.     {
  199.         return $this->shippingBasePrice;
  200.     }
  201.     public function setShippingBasePrice(float $shippingBasePrice): self
  202.     {
  203.         $this->shippingBasePrice $shippingBasePrice;
  204.         return $this;
  205.     }
  206.     public function getHouseNumberPrefix(): ?string
  207.     {
  208.         return $this->houseNumberPrefix;
  209.     }
  210.     public function setHouseNumberPrefix(string $houseNumberPrefix): self
  211.     {
  212.         $this->houseNumberPrefix $houseNumberPrefix;
  213.         return $this;
  214.     }
  215. }