178 lines
3.1 KiB
PHP
178 lines
3.1 KiB
PHP
<?php
|
|
|
|
namespace KupShop\DeliveryPriceListBundle\Entity;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
/**
|
|
* @ORM\Entity
|
|
*
|
|
* @ORM\Table(name="delivery_pricelists_regions_countries")
|
|
*/
|
|
class RegionCountry
|
|
{
|
|
/**
|
|
* @ORM\Id
|
|
*
|
|
* @ORM\Column(type="integer")
|
|
*
|
|
* @ORM\GeneratedValue(strategy="AUTO")
|
|
*/
|
|
private $id;
|
|
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity="PriceList")
|
|
*
|
|
* @ORM\JoinColumn(name="id_pricelist", referencedColumnName="id")
|
|
*/
|
|
private $pricelist;
|
|
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity="Region", inversedBy="regionCountry")
|
|
*
|
|
* @ORM\JoinColumn(name="id_region", referencedColumnName="id")
|
|
*/
|
|
private $region;
|
|
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity="KupShop\I18nBundle\Entity\Country", inversedBy="countries")
|
|
*
|
|
* @ORM\JoinColumn(name="id_country")
|
|
*/
|
|
private $country;
|
|
|
|
/**
|
|
* @ORM\Column(name="delivery_time_min", type="integer", nullable=true)
|
|
*/
|
|
private $deliveryTimeMin;
|
|
|
|
/**
|
|
* @ORM\Column(name="delivery_time_max", type="integer", nullable=true)
|
|
*/
|
|
private $deliveryTimeMax;
|
|
|
|
/**
|
|
* Get id.
|
|
*
|
|
* @return int
|
|
*/
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
/**
|
|
* Set region.
|
|
*
|
|
* @return RegionCountry
|
|
*/
|
|
public function setRegion($region)
|
|
{
|
|
$this->region = $region;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get region.
|
|
*
|
|
* @return int
|
|
*/
|
|
public function getRegion()
|
|
{
|
|
return $this->region;
|
|
}
|
|
|
|
/**
|
|
* Set country.
|
|
*
|
|
* @return RegionCountry
|
|
*/
|
|
public function setCountry($country)
|
|
{
|
|
$this->country = $country;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get country.
|
|
*
|
|
* @return int
|
|
*/
|
|
public function getCountry()
|
|
{
|
|
return $this->country;
|
|
}
|
|
|
|
/**
|
|
* Set deliveryTimeMin.
|
|
*
|
|
* @param int $deliveryTimeMin
|
|
*
|
|
* @return RegionCountry
|
|
*/
|
|
public function setDeliveryTimeMin($deliveryTimeMin)
|
|
{
|
|
$this->deliveryTimeMin = $deliveryTimeMin;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get deliveryTimeMin.
|
|
*
|
|
* @return int
|
|
*/
|
|
public function getDeliveryTimeMin()
|
|
{
|
|
return $this->deliveryTimeMin;
|
|
}
|
|
|
|
/**
|
|
* Set deliveryTimeMax.
|
|
*
|
|
* @param int $deliveryTimeMax
|
|
*
|
|
* @return RegionCountry
|
|
*/
|
|
public function setDeliveryTimeMax($deliveryTimeMax)
|
|
{
|
|
$this->deliveryTimeMax = $deliveryTimeMax;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get deliveryTimeMax.
|
|
*
|
|
* @return int
|
|
*/
|
|
public function getDeliveryTimeMax()
|
|
{
|
|
return $this->deliveryTimeMax;
|
|
}
|
|
|
|
/**
|
|
* Set pricelist.
|
|
*
|
|
* @return RegionCountry
|
|
*/
|
|
public function setPricelist(?PriceList $pricelist = null)
|
|
{
|
|
$this->pricelist = $pricelist;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get pricelist.
|
|
*
|
|
* @return \KupShop\DeliveryPriceListBundle\Entity\PriceList
|
|
*/
|
|
public function getPricelist()
|
|
{
|
|
return $this->pricelist;
|
|
}
|
|
}
|