<?php
namespace App\Entity;
use App\Entity\GeneralConfig\AttentionDay;
use App\Entity\Price\Range;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* GeneralConfig
*
* @ORM\Table(name="general_config") *
* @ORM\Entity()
*/
class GeneralConfig
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(name="ena_point_limit",type="integer")
*/
private $enaPointLimit;
/**
* @ORM\Column(name="ena_weight_limit",type="float")
*/
private $enaWeightLimit;
/**
* @ORM\Column(name="ena_maximum_quantity", type="integer")
*/
private $enaMaximumQuantity;
/**
* @ORM\Column(name="shipping_point_limit", type="integer")
*/
private $shippingPointLimit;
/**
* @ORM\Column(name="shipping_weight_limit", type="float")
*/
private $shippingWeightLimit;
/**
* @ORM\Column(name="shipping_maximum_quantity", type="integer")
*/
private $shippingMaximumQuantity;
/**
* @ORM\Column(type="integer")
*/
private $workstationCount;
/**
* @ORM\Column(type="integer")
*/
private $enaReceptionTime;
/**
* @ORM\Column(type="integer")
*/
private $shippingReceptionTime;
/**
* @ORM\Column(type="string", length=255)
*/
private $iataCode;
/**
* @ORM\OneToMany(targetEntity=Range::class, mappedBy="config", cascade={"persist", "remove"})
*/
private $ranges;
/**
* @ORM\Column(type="float")
*/
private $shippingBasePrice;
/**
* @ORM\Column(type="string", length=255)
*/
private $houseNumberPrefix;
public function __construct()
{
$this->ranges = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getEnaPointLimit(): ?int
{
return $this->enaPointLimit;
}
public function setEnaPointLimit(int $enaPointLimit): self
{
$this->enaPointLimit = $enaPointLimit;
return $this;
}
public function getEnaWeightLimit(): ?float
{
return $this->enaWeightLimit;
}
public function setEnaWeightLimit(float $enaWeightLimit): self
{
$this->enaWeightLimit = $enaWeightLimit;
return $this;
}
public function getEnaMaximumQuantity(): ?int
{
return $this->enaMaximumQuantity;
}
public function setEnaMaximumQuantity(int $enaMaximumQuantity): self
{
$this->enaMaximumQuantity = $enaMaximumQuantity;
return $this;
}
public function getShippingPointLimit(): ?int
{
return $this->shippingPointLimit;
}
public function setShippingPointLimit(int $shippingPointLimit): self
{
$this->shippingPointLimit = $shippingPointLimit;
return $this;
}
public function getShippingWeightLimit(): ?float
{
return $this->shippingWeightLimit;
}
public function setShippingWeightLimit(float $shippingWeightLimit): self
{
$this->shippingWeightLimit = $shippingWeightLimit;
return $this;
}
public function getShippingMaximumQuantity(): ?int
{
return $this->shippingMaximumQuantity;
}
public function setShippingMaximumQuantity(int $shippingMaximumQuantity): self
{
$this->shippingMaximumQuantity = $shippingMaximumQuantity;
return $this;
}
public function getWorkstationCount(): ?int
{
return $this->workstationCount;
}
public function setWorkstationCount(int $workstationCount): self
{
$this->workstationCount = $workstationCount;
return $this;
}
public function getEnaReceptionTime(): ?int
{
return $this->enaReceptionTime;
}
public function setEnaReceptionTime(int $enaReceptionTime): self
{
$this->enaReceptionTime = $enaReceptionTime;
return $this;
}
public function getShippingReceptionTime(): ?int
{
return $this->shippingReceptionTime;
}
public function setShippingReceptionTime(int $shippingReceptionTime): self
{
$this->shippingReceptionTime = $shippingReceptionTime;
return $this;
}
public function getIataCode(): ?string
{
return $this->iataCode;
}
public function setIataCode(string $iataCode): self
{
$this->iataCode = $iataCode;
return $this;
}
/**
* @return Collection<int, Range>
*/
public function getRanges(): Collection
{
return $this->ranges;
}
public function addRange(Range $range): self
{
if (!$this->ranges->contains($range)) {
$this->ranges[] = $range;
$range->setConfig($this);
}
return $this;
}
public function removeRange(Range $range): self
{
if ($this->ranges->removeElement($range)) {
// set the owning side to null (unless already changed)
if ($range->getConfig() === $this) {
$range->setConfig(null);
}
}
return $this;
}
public function getShippingBasePrice(): ?float
{
return $this->shippingBasePrice;
}
public function setShippingBasePrice(float $shippingBasePrice): self
{
$this->shippingBasePrice = $shippingBasePrice;
return $this;
}
public function getHouseNumberPrefix(): ?string
{
return $this->houseNumberPrefix;
}
public function setHouseNumberPrefix(string $houseNumberPrefix): self
{
$this->houseNumberPrefix = $houseNumberPrefix;
return $this;
}
}