<?php
/**
* Service class represents simple model Price entity
*
* $Project: Alliancemarkets2 $
* $Id$
*
* @package alliancemarkets2
* @author George Matyas <webexciter@yahoo.com>
* @version $Revision$
*/
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\EntityRepo\PriceRepo")
* @ORM\Table(name="price")
*/
class Price
{
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $priceId=0;
/**
* @ORM\Column(type="float", nullable=true)
*/
protected $nettoValue;
/**
* @ORM\Column(type="float", nullable=true)
*/
protected $bruttoValue;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
protected $priceMode = 'netto';
/**
* @ORM\Column(type="integer")
*/
protected $priceLevelId=0;
/**
* @ORM\Column(type="integer")
*/
protected $productId=0;
/**
* Get priceId
*
* @return integer
*/
public function getPriceId()
{
return $this->priceId;
}
/**
* Set priceName
*
* @param string $priceName
*
* @return Price
*/
public function setPriceName($priceName)
{
$this->priceName = $priceName;
return $this;
}
/**
* Get priceName
*
* @return string
*/
public function getPriceName()
{
return $this->priceName;
}
/**
* Set nettoValue
*
* @param float $nettoValue
*
* @return Price
*/
public function setNettoValue($nettoValue)
{
$this->nettoValue = $nettoValue;
return $this;
}
/**
* Get nettoValue
*
* @return float
*/
public function getNettoValue()
{
return $this->nettoValue;
}
/**
* Set bruttoValue
*
* @param float $bruttoValue
*
* @return Price
*/
public function setBruttoValue($bruttoValue)
{
$this->bruttoValue = $bruttoValue;
return $this;
}
/**
* Get bruttoValue
*
* @return float
*/
public function getBruttoValue()
{
return $this->bruttoValue;
}
/**
* Set priceMode
*
* @param string $priceMode
*
* @return Price
*/
public function setPriceMode($priceMode)
{
$this->priceMode = $priceMode;
return $this;
}
/**
* Get priceMode
*
* @return string
*/
public function getPriceMode()
{
return $this->priceMode;
}
/**
* Set priceLevelId
*
* @param integer $priceLevelId
*
* @return Price
*/
public function setPriceLevelId($priceLevelId)
{
$this->priceLevelId = $priceLevelId;
return $this;
}
/**
* Get priceLevelId
*
* @return integer
*/
public function getPriceLevelId()
{
return $this->priceLevelId;
}
/**
* Set productId
*
* @param integer $productId
*
* @return Price
*/
public function setProductId($productId)
{
$this->productId = $productId;
return $this;
}
/**
* Get productId
*
* @return integer
*/
public function getProductId()
{
return $this->productId;
}
}