<?php
namespace App\Entity;
use App\Repository\CurrencyHistoryRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=CurrencyHistoryRepository::class)
*/
class CurrencyHistory
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=CurrencyPair::class)
* @ORM\JoinColumn(nullable=false)
*/
private $currencyPair;
/**
* @ORM\Column(type="string")
*/
private $date;
/**
* @ORM\Column(type="decimal", precision=10, scale=6)
*/
private $rate;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $status;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $updated;
/**
* @ORM\Column(type="string")
*/
private $period;
public function getId(): ?int
{
return $this->id;
}
public function getCurrencyPair(): ?CurrencyPair
{
return $this->currencyPair;
}
public function setCurrencyPair(?CurrencyPair $currencyPair): self
{
$this->currencyPair = $currencyPair;
return $this;
}
public function getDate(): string
{
return $this->date;
}
public function setDate(string $date): self
{
$this->date = $date;
return $this;
}
public function getRate(): ?string
{
return $this->rate;
}
public function setRate(string $rate): self
{
$this->rate = $rate;
return $this;
}
public function getStatus(): ?bool
{
return $this->status;
}
public function setStatus(?bool $status): self
{
$this->status = $status;
return $this;
}
/**
* @return mixed
*/
public function getPeriod() {
return $this->period;
}
/**
* @param mixed $period
*/
public function setPeriod($period): void {
$this->period = $period;
}
/**
* @return mixed
*/
public function getUpdated() {
return $this->updated;
}
/**
* @param mixed $updated
*/
public function setUpdated($updated): void {
$this->updated = $updated;
}
}