src/Entity/CurrencyHistory.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CurrencyHistoryRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=CurrencyHistoryRepository::class)
  7. */
  8. class CurrencyHistory
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\ManyToOne(targetEntity=CurrencyPair::class)
  18. * @ORM\JoinColumn(nullable=false)
  19. */
  20. private $currencyPair;
  21. /**
  22. * @ORM\Column(type="string")
  23. */
  24. private $date;
  25. /**
  26. * @ORM\Column(type="decimal", precision=10, scale=6)
  27. */
  28. private $rate;
  29. /**
  30. * @ORM\Column(type="boolean", nullable=true)
  31. */
  32. private $status;
  33. /**
  34. * @ORM\Column(type="string", nullable=true)
  35. */
  36. private $updated;
  37. /**
  38. * @ORM\Column(type="string")
  39. */
  40. private $period;
  41. public function getId(): ?int
  42. {
  43. return $this->id;
  44. }
  45. public function getCurrencyPair(): ?CurrencyPair
  46. {
  47. return $this->currencyPair;
  48. }
  49. public function setCurrencyPair(?CurrencyPair $currencyPair): self
  50. {
  51. $this->currencyPair = $currencyPair;
  52. return $this;
  53. }
  54. public function getDate(): string
  55. {
  56. return $this->date;
  57. }
  58. public function setDate(string $date): self
  59. {
  60. $this->date = $date;
  61. return $this;
  62. }
  63. public function getRate(): ?string
  64. {
  65. return $this->rate;
  66. }
  67. public function setRate(string $rate): self
  68. {
  69. $this->rate = $rate;
  70. return $this;
  71. }
  72. public function getStatus(): ?bool
  73. {
  74. return $this->status;
  75. }
  76. public function setStatus(?bool $status): self
  77. {
  78. $this->status = $status;
  79. return $this;
  80. }
  81. /**
  82. * @return mixed
  83. */
  84. public function getPeriod() {
  85. return $this->period;
  86. }
  87. /**
  88. * @param mixed $period
  89. */
  90. public function setPeriod($period): void {
  91. $this->period = $period;
  92. }
  93. /**
  94. * @return mixed
  95. */
  96. public function getUpdated() {
  97. return $this->updated;
  98. }
  99. /**
  100. * @param mixed $updated
  101. */
  102. public function setUpdated($updated): void {
  103. $this->updated = $updated;
  104. }
  105. }