91 lines
1.5 KiB
PHP
91 lines
1.5 KiB
PHP
<?php
|
|
|
|
namespace KupShop\PricelistBundle\Entity;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
/**
|
|
* Class Pricelist.
|
|
*
|
|
* @ORM\Entity
|
|
* @ORM\Table(name="pricelists", options={"collate":"utf8"})
|
|
*/
|
|
class Pricelist
|
|
{
|
|
/**
|
|
* @ORM\Id
|
|
* @ORM\Column(type="integer")
|
|
* @ORM\GeneratedValue(strategy="AUTO")
|
|
*/
|
|
private $id;
|
|
|
|
/**
|
|
* @ORM\Column(type="string", length=60)
|
|
*/
|
|
private $name;
|
|
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity="KupShop\I18nBundle\Entity\Currency")
|
|
* @ORM\JoinColumn(name="currency")
|
|
*/
|
|
private $currency;
|
|
|
|
/**
|
|
* Get id.
|
|
*
|
|
* @return int
|
|
*/
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
/**
|
|
* Set name.
|
|
*
|
|
* @param string $name
|
|
*
|
|
* @return Pricelist
|
|
*/
|
|
public function setName($name)
|
|
{
|
|
$this->name = $name;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get name.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
/**
|
|
* Set currency.
|
|
*
|
|
* @param \KupShop\I18nBundle\Entity\Currency $currency
|
|
*
|
|
* @return Pricelist
|
|
*/
|
|
public function setCurrency(\KupShop\I18nBundle\Entity\Currency $currency = null)
|
|
{
|
|
$this->currency = $currency;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get currency.
|
|
*
|
|
* @return \KupShop\I18nBundle\Entity\Currency
|
|
*/
|
|
public function getCurrency()
|
|
{
|
|
return $this->currency;
|
|
}
|
|
}
|