src/CoreBundle/Entity/Rate.php line 10

Open in your IDE?
  1. <?php
  2. namespace CoreBundle\Entity;
  3. use DateTime;
  4. /**
  5.  * Rate
  6.  */
  7. class Rate
  8. {
  9.     /**
  10.      * @var int
  11.      */
  12.     private $id;
  13.     /**
  14.      * @var float
  15.      */
  16.     private $rate;
  17.     /**
  18.      * @var string
  19.      */
  20.     private $date_create;
  21.     /**
  22.      * @var string
  23.      */
  24.     private $currency;
  25.     /**
  26.      * @var
  27.      */
  28.     private $winner_rate;
  29.     public function __toString()
  30.     {
  31.         return $this->getCurrency() . ' ' $this->getRate();
  32.     }
  33.     /**
  34.      * Get id
  35.      *
  36.      * @return int
  37.      */
  38.     public function getId()
  39.     {
  40.         return $this->id;
  41.     }
  42.     /**
  43.      * Set rate
  44.      *
  45.      * @param float $rate
  46.      *
  47.      * @return Rate
  48.      */
  49.     public function setRate($rate)
  50.     {
  51.         $this->rate $rate;
  52.         return $this;
  53.     }
  54.     /**
  55.      * Get rate
  56.      *
  57.      * @return float
  58.      */
  59.     public function getRate()
  60.     {
  61.         return $this->rate;
  62.     }
  63.     /**
  64.      * Set dateCreate
  65.      *
  66.      * @param DateTime $dateCreate
  67.      *
  68.      * @return Rate
  69.      */
  70.     public function setDateCreate($dateCreate)
  71.     {
  72.         $this->date_create $dateCreate;
  73.         return $this;
  74.     }
  75.     /**
  76.      * Get dateCreate
  77.      *
  78.      * @return string
  79.      */
  80.     public function getDateCreate()
  81.     {
  82.         return $this->date_create;
  83.     }
  84.     /**
  85.      * Set currency
  86.      *
  87.      * @param string $currency
  88.      *
  89.      * @return Rate
  90.      */
  91.     public function setCurrency($currency)
  92.     {
  93.         $this->currency $currency;
  94.         return $this;
  95.     }
  96.     /**
  97.      * Get currency
  98.      *
  99.      * @return string
  100.      */
  101.     public function getCurrency()
  102.     {
  103.         return $this->currency;
  104.     }
  105.     /**
  106.      * @param mixed $winner_rate
  107.      * @return $this
  108.      */
  109.     public function setWinnerRate($winner_rate)
  110.     {
  111.         $this->winner_rate $winner_rate;
  112.         return $this;
  113.     }
  114.     /**
  115.      * @return mixed
  116.      */
  117.     public function getWinnerRate()
  118.     {
  119.         return $this->winner_rate;
  120.     }
  121. }