<?php
/**
* Currency class represents simple model of Currency 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\CurrencyRepo")
* @ORM\Table(name="currency")
*/
class Currency
{
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $currencyId=0;
/**
* @ORM\Column(type="string", length=100)
*/
protected $currencyName;
/**
* @ORM\Column(type="string", length=100)
*/
protected $currencyKey;
/**
* @ORM\Column(type="integer")
*/
protected $isLive=1;
/**
* @ORM\Column(type="float", nullable=true)
*/
protected $rateEUR;
/**
* Get currencyId
*
* @return integer
*/
public function getCurrencyId()
{
return $this->currencyId;
}
/**
* Set currencyName
*
* @param string $currencyName
*
* @return Currency
*/
public function setCurrencyName($currencyName)
{
$this->currencyName = $currencyName;
return $this;
}
/**
* Get currencyName
*
* @return string
*/
public function getCurrencyName()
{
return $this->currencyName;
}
/**
* Set currencyKey
*
* @param string $currencyKey
*
* @return Currency
*/
public function setCurrencyKey($currencyKey)
{
$this->currencyKey = $currencyKey;
return $this;
}
/**
* Get currencyKey
*
* @return string
*/
public function getCurrencyKey()
{
return $this->currencyKey;
}
/**
* Set isLive
*
* @param integer $isLive
*
* @return Currency
*/
public function setIsLive($isLive)
{
$this->isLive = $isLive;
return $this;
}
/**
* Get isLive
*
* @return integer
*/
public function getIsLive()
{
return $this->isLive;
}
/**
* Set rateEUR
*
* @param float $rateEUR
*
* @return Currency
*/
public function setRateEUR($rateEUR)
{
$this->rateEUR = $rateEUR;
return $this;
}
/**
* Get rateEUR
*
* @return float
*/
public function getRateEUR()
{
return $this->rateEUR;
}
}