src/Bundles/Instruments/CashflowForward/Entity/BudgetRates.php line 14

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Bundles\Instruments\CashflowForward\Entity;
  4. use App\Entity\CurrencyPair;
  5. use Bundles\Portfolios\Entity\Portfolio as Portfolio;
  6. use Bundles\Instruments\CashflowForward\Repository\ButgetRatesRepository;
  7. use Doctrine\ORM\Mapping as ORM;
  8. /**
  9. * @ORM\Entity(repositoryClass=ButgetRatesRepository::class)
  10. */
  11. class BudgetRates {
  12. /**
  13. * @ORM\Id
  14. * @ORM\GeneratedValue
  15. * @ORM\Column(type="integer")
  16. */
  17. private $id;
  18. /**
  19. * @ORM\ManyToOne(targetEntity=CurrencyPair::class)
  20. * @ORM\JoinColumn(nullable=false)
  21. */
  22. private $CurrencyPair;
  23. /**
  24. * @ORM\Column(type="string")
  25. */
  26. private $dateStart;
  27. /**
  28. * @ORM\Column(type="string")
  29. */
  30. private $dateEnd;
  31. /**
  32. * @ORM\Column(type="decimal", precision=10, scale=4)
  33. */
  34. private $rate;
  35. /**
  36. * @ORM\ManyToOne(targetEntity=Portfolio::class)
  37. * @ORM\JoinColumn(nullable=false)
  38. */
  39. private $Portfolio;
  40. /**
  41. * @ORM\Column(type="boolean", nullable=true)
  42. */
  43. private $status;
  44. public function getId(): ?int {
  45. return $this->id;
  46. }
  47. public function setId(int $id): self {
  48. $this->id = $id;
  49. return $this;
  50. }
  51. public function getCurrencyPair(): ?CurrencyPair {
  52. return $this->CurrencyPair;
  53. }
  54. public function setCurrencyPair(?CurrencyPair $CurrencyPair): self {
  55. $this->CurrencyPair = $CurrencyPair;
  56. return $this;
  57. }
  58. public function getDateStart(): ?string {
  59. return $this->dateStart;
  60. }
  61. public function setDateStart(string $dateStart): self {
  62. $this->dateStart = $dateStart;
  63. return $this;
  64. }
  65. public function getDateEnd(): ?string {
  66. return $this->dateEnd;
  67. }
  68. public function setDateEnd(string $dateEnd): self {
  69. $this->dateEnd = $dateEnd;
  70. return $this;
  71. }
  72. public function getRate(): ?string {
  73. return $this->rate;
  74. }
  75. public function setRate(string $rate): self {
  76. $this->rate = $rate;
  77. return $this;
  78. }
  79. public function getPortfolio(): ?Portfolio {
  80. return $this->Portfolio;
  81. }
  82. public function setPortfolio(?Portfolio $Portfolio): self {
  83. $this->Portfolio = $Portfolio;
  84. return $this;
  85. }
  86. public function getStatus(): ?bool {
  87. return $this->status;
  88. }
  89. public function setStatus(?bool $status): self {
  90. $this->status = $status;
  91. return $this;
  92. }
  93. }